macro_rules! symbol {
($($name:ident),*) => { ... };
($($name:ident : $path:path),*) => { ... };
}
Expand description
Add symbols to the global namespace
There are a few ways to use this macro:
symbol!(foo, bar)
: adds symbols forfoo
andbar
in the local namespace, this is particularly useful for adding symbols for C functionssymbol!(foo: something::my_foo)
: adds a symbol forfoo
which maps to the rust functionsomething::my_foo