[][src]Macro gdnative::godot_init

macro_rules! godot_init {
    ($callback:ident) => { ... };
}

Declare all the API endpoints necessary to initialize a NativeScript library.

godot_init!(init) is a shorthand for:

This example is not tested
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.