Macro gdnative_core::godot_gdnative_terminate [−][src]
Declare the API endpoint invoked during shutdown.
By default this declares an extern function named godot_gdnative_terminate
.
This can be overridden, for example:
ⓘ
// Declares an extern function named custom_gdnative_terminate instead of // godot_gdnative_terminate. godot_gdnative_terminate!(my_shutdown_callback as custom_gdnative_terminate);
Overriding the default entry point names can be useful if several gdnative libraries are linked statically to avoid name clashes.