How to register class as editor's tool in GDNative?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Robotex

In GDScript I just need to add tool keyword at beginning of script. How to do the same in GDNative script?

:bust_in_silhouette: Reply From: sash-rc
extern "C" void GDN_EXPORT godot_nativescript_init(void *handle)
{
    // ...
    register_tool_class<YourClass>();
}