refactor: merge get_outputs macros into define_node and include_definition
This commit is contained in:
@@ -16,13 +16,3 @@ pub fn set_panic_hook() {
|
||||
#[cfg(feature = "console_error_panic_hook")]
|
||||
console_error_panic_hook::set_once();
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! generate_outputs {
|
||||
([$($item:expr),* $(,)?]) => {
|
||||
#[wasm_bindgen]
|
||||
pub fn get_outputs() -> Vec<String> {
|
||||
vec![$($item.to_string()),*]
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user