summaryrefslogtreecommitdiff
path: root/modules/gdnative/nativescript
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-10-15 03:38:18 +0200
committerKarroffel <therzog@mail.de>2017-10-15 03:42:52 +0200
commit86de8060a46eb576009b3277af916436d6cdee5e (patch)
treea8da91a3d68fb2c21edaab1585aadedf31bebf25 /modules/gdnative/nativescript
parentba9486a4d30f1bef11ff3629af67a87c6264f569 (diff)
remove error message for optional NativeScript symbols
Diffstat (limited to 'modules/gdnative/nativescript')
-rw-r--r--modules/gdnative/nativescript/nativescript.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/gdnative/nativescript/nativescript.cpp b/modules/gdnative/nativescript/nativescript.cpp
index 7e3a7c8e9e..52379560b3 100644
--- a/modules/gdnative/nativescript/nativescript.cpp
+++ b/modules/gdnative/nativescript/nativescript.cpp
@@ -137,7 +137,6 @@ bool NativeScript::can_instance() const {
#endif
}
-// TODO(karroffel): implement this
Ref<Script> NativeScript::get_base_script() const {
NativeScriptDesc *script_data = get_script_desc();
@@ -1052,9 +1051,7 @@ void NativeScriptLanguage::call_libraries_cb(const StringName &name) {
void *proc_ptr;
Error err = L->get()->get_symbol(name, proc_ptr);
- if (err != OK) {
- ERR_PRINT((String("No godot_gdnative_init in \"" + L->get()->get_library()->get_active_library_path()) + "\" found").utf8().get_data());
- } else {
+ if (!err) {
((void (*)())proc_ptr)();
}
}