create hot-reload-context flag
This commit is contained in:
1 parent
3165c90e9f
commit
a42ed7d445
4 files changed
+12
-1
No files matched your search
@@ -44,6 +44,7 @@ macro_rules! trait_method {
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(feature = "hot-reload-context")]
|
||||
macro_rules! trait_method_mapping {
|
||||
(
|
||||
$matching:ident;
|
||||
@@ -97,6 +98,7 @@ macro_rules! trait_methods {
|
||||
)*
|
||||
}
|
||||
|
||||
#[cfg(feature = "hot-reload-context")]
|
||||
pub(crate) fn $fn(attr: &str) -> Option<(&'static str, Option<&'static str>)> {
|
||||
$(
|
||||
trait_method_mapping! {
|
||||
|
||||
Reference in new issue
Block a user