From 8f5d56e04a60020ec8a6db2aebc9bf9bbaf727d1 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Tue, 27 Sep 2022 11:23:34 +0300 Subject: [GDExtension] Use function names with underscore for TextServer extension, add macros to generate wrappers for module functions. --- tests/core/object/test_class_db.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3