Merge pull request #86 from RameshRavone/patch-22

Update README.md
pull/87/head
Thomas Herzog 2018-01-24 10:36:46 +01:00 committed by GitHub
commit af760b9f37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 6 deletions

View File

@ -93,18 +93,23 @@ public:
};
/** GDNative Initialize **/
GDNATIVE_INIT(godot_gdnative_init_options *options) {
extern "C" void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options *o)
{
godot::Godot::gdnative_init(o);
}
/** GDNative Terminate **/
GDNATIVE_TERMINATE(godot_gdnative_terminate_options *options) {
extern "C" void GDN_EXPORT godot_gdnative_terminate(godot_gdnative_terminate_options *o)
{
godot::Godot::gdnative_terminate(o);
}
/** NativeScript Initialize **/
NATIVESCRIPT_INIT() {
register_class<SimpleClass>();
extern "C" void GDN_EXPORT godot_nativescript_init(void *handle)
{
godot::Godot::nativescript_init(handle);
godot::register_class<SimpleClass>();
}
```