summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2024-06-10 10:51:52 -0500
committerDavid Snopek <dsnopek@gmail.com>2024-06-10 10:55:24 -0500
commit7f74fe7bb20b1f7201781090857206ce105d17e1 (patch)
treed0b0708d149641e63156e0f36bcf5b6120dec832 /test/src
parent21d526e5e5b1e5d8b6be4db05a704c2c2e7837a9 (diff)
downloadredot-cpp-7f74fe7bb20b1f7201781090857206ce105d17e1.tar.gz
Fix undefined symbol error on Linux with virtual methods that take `Node *` arguments
Diffstat (limited to 'test/src')
-rw-r--r--test/src/example.cpp1
-rw-r--r--test/src/example.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/src/example.cpp b/test/src/example.cpp
index 78d7062..c445268 100644
--- a/test/src/example.cpp
+++ b/test/src/example.cpp
@@ -239,6 +239,7 @@ void Example::_bind_methods() {
GDVIRTUAL_BIND(_do_something_virtual, "name", "value");
ClassDB::bind_method(D_METHOD("test_virtual_implemented_in_script"), &Example::test_virtual_implemented_in_script);
+ GDVIRTUAL_BIND(_do_something_virtual_with_control, "control");
ClassDB::bind_method(D_METHOD("test_use_engine_singleton"), &Example::test_use_engine_singleton);
diff --git a/test/src/example.h b/test/src/example.h
index 1af4e5f..9fa2b07 100644
--- a/test/src/example.h
+++ b/test/src/example.h
@@ -186,6 +186,7 @@ public:
GDVIRTUAL2R(String, _do_something_virtual, String, int);
String test_virtual_implemented_in_script(const String &p_name, int p_value);
+ GDVIRTUAL1(_do_something_virtual_with_control, Control *);
String test_use_engine_singleton() const;
};