Merge pull request #9822 from karroffel/nativescript-doublefree

[NativeScript] bound ` to ClassDB
This commit is contained in:
Thomas Herzog 2017-07-25 00:27:21 +02:00 committed by GitHub
commit 91bb4952e4
1 changed files with 2 additions and 0 deletions

View File

@ -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::STRING, "class_name"), "set_class_name", "get_class_name");
ADD_PROPERTYNZ(PropertyInfo(Variant::OBJECT, "library", PROPERTY_HINT_RESOURCE_TYPE, "GDNativeLibrary"), "set_library", "get_library"); 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() #define NSL NativeScriptLanguage::get_singleton()