summaryrefslogtreecommitdiff
path: root/tests/core
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-09-27 11:23:34 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-09-28 10:04:11 +0300
commit8f5d56e04a60020ec8a6db2aebc9bf9bbaf727d1 (patch)
tree90eef85405113fa5f7d108ce738ac5f76f0e682b /tests/core
parent92bcd3c01d5188480793c03b2b50e97363ceb624 (diff)
[GDExtension] Use function names with underscore for TextServer extension, add macros to generate wrappers for module functions.
Diffstat (limited to 'tests/core')
-rw-r--r--tests/core/object/test_class_db.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/core/object/test_class_db.h b/tests/core/object/test_class_db.h
index 208923edb9..b0375c63b9 100644
--- a/tests/core/object/test_class_db.h
+++ b/tests/core/object/test_class_db.h
@@ -666,6 +666,10 @@ void add_exposed_classes(Context &r_context) {
} else {
exposed_class.methods.push_back(method);
}
+
+ if (method.is_virtual) {
+ TEST_COND(String(method.name)[0] != '_', "Virtual method ", String(method.name), " does not start with underscore.");
+ }
}
// Add signals