Macro gdnative_core::godot_init
source · [−]macro_rules! godot_init {
($callback:ident) => { ... };
}Expand description
Declare all the API endpoints necessary to initialize a NativeScript library.
godot_init!(init) is a shorthand for:
ⓘ
godot_gdnative_init!();
godot_nativescript_init!(init);
godot_gdnative_terminate!();This declares three extern functions, named godot_gdnative_init,
godot_nativescript_init, and godot_gdnative_terminate. If you need different prefixes
to avoid name clashes when multiple GDNative libraries are linked statically, please use
the respective macros directly.