mirror of
https://github.com/godotengine/godot
synced 2024-10-06 15:35:08 +00:00
Fixed link errors when building in debug with option module_regex_enabled=no
This commit is contained in:
parent
e578c1fef8
commit
360fb0ffa8
|
@ -432,6 +432,10 @@ bool test_26() {
|
||||||
|
|
||||||
OS::get_singleton()->print("\n\nTest 26: RegEx substitution\n");
|
OS::get_singleton()->print("\n\nTest 26: RegEx substitution\n");
|
||||||
|
|
||||||
|
#ifndef MODULE_REGEX_ENABLED
|
||||||
|
OS::get_singleton()->print("\tRegEx module disabled, can't run test.");
|
||||||
|
return false;
|
||||||
|
#else
|
||||||
String s = "Double all the vowels.";
|
String s = "Double all the vowels.";
|
||||||
|
|
||||||
OS::get_singleton()->print("\tString: %ls\n", s.c_str());
|
OS::get_singleton()->print("\tString: %ls\n", s.c_str());
|
||||||
|
@ -443,6 +447,7 @@ bool test_26() {
|
||||||
OS::get_singleton()->print("\tResult: %ls\n", s.c_str());
|
OS::get_singleton()->print("\tResult: %ls\n", s.c_str());
|
||||||
|
|
||||||
return (s == "Doouublee aall thee vooweels.");
|
return (s == "Doouublee aall thee vooweels.");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
struct test_27_data {
|
struct test_27_data {
|
||||||
|
|
Loading…
Reference in a new issue