From b8946ae829212d2a66943a186d94ca70275919df Mon Sep 17 00:00:00 2001 From: RameshRavone Date: Wed, 24 Jan 2018 08:35:19 +0530 Subject: [PATCH] Update README.md --- README.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index eaf0a3b..4b4eccd 100644 --- a/README.md +++ b/README.md @@ -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(); +extern "C" void GDN_EXPORT godot_nativescript_init(void *handle) +{ + godot::Godot::nativescript_init(handle); + + godot::register_class(); } ```