macro_rules! export_mod {
($mod_ty:ty) => { ... };
}Expand description
Export a Mod as a dynamically loadable Yog mod.
Generates the two C-ABI entry points the runtime looks up:
yog_abi_version() -> u32— version check before loadingyog_mod_register(*const YogApi, *mut c_void)— registration entry point
Put this once at the crate root of a cdylib mod:
ⓘ
yog_api::export_mod!(MyMod);