diff options
author | Thomas Herzog <thomas.herzog@mail.com> | 2017-07-25 00:27:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-25 00:27:21 +0200 |
commit | 91bb4952e4f01d8a8fa729c2db2fb6beb5bce0ec (patch) | |
tree | 2c8b45f6257989c5df6a4b4f41ecd123e557ec64 /modules/nativescript/nativescript.cpp | |
parent | e15a0c52437d1a3be1128641c33b994624e6bfe9 (diff) | |
parent | 3f1e75e89c0c3e008569208b8d397c59c767506a (diff) | |
download | redot-engine-91bb4952e4f01d8a8fa729c2db2fb6beb5bce0ec.tar.gz |
Merge pull request #9822 from karroffel/nativescript-doublefree
[NativeScript] bound ` to ClassDB
Diffstat (limited to 'modules/nativescript/nativescript.cpp')
-rw-r--r-- | modules/nativescript/nativescript.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/nativescript/nativescript.cpp b/modules/nativescript/nativescript.cpp index 952e8e349c..493f21d75e 100644 --- a/modules/nativescript/nativescript.cpp +++ b/modules/nativescript/nativescript.cpp @@ -59,6 +59,8 @@ void NativeScript::_bind_methods() { ADD_PROPERTYNZ(PropertyInfo(Variant::STRING, "class_name"), "set_class_name", "get_class_name"); ADD_PROPERTYNZ(PropertyInfo(Variant::OBJECT, "library", PROPERTY_HINT_RESOURCE_TYPE, "GDNativeLibrary"), "set_library", "get_library"); + + ClassDB::bind_vararg_method(METHOD_FLAGS_DEFAULT, "new", &NativeScript::_new, MethodInfo(Variant::OBJECT, "new")); } #define NSL NativeScriptLanguage::get_singleton() |