diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-07-24 14:55:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 14:55:22 +0200 |
commit | 3f1fc5af7affe27bc2fbb1492377930cc33cc526 (patch) | |
tree | 2eae9f19d48200ed0d922abe6d2d8bc21585a31d /platform/windows | |
parent | 27d12092821df77a6186d2fd54055c54beefbea0 (diff) | |
parent | 579342810f5c453e91063c54ca6544300ea09090 (diff) |
Merge pull request #40148 from RevoluPowered/unit-test-revamp
Added doctest unit test framework
Diffstat (limited to 'platform/windows')
-rw-r--r-- | platform/windows/godot_windows.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/platform/windows/godot_windows.cpp b/platform/windows/godot_windows.cpp index 910059a9fc..add559a717 100644 --- a/platform/windows/godot_windows.cpp +++ b/platform/windows/godot_windows.cpp @@ -146,6 +146,8 @@ int widechar_main(int argc, wchar_t **argv) { argv_utf8[i] = wc_to_utf8(argv[i]); } + TEST_MAIN_PARAM_OVERRIDE(argc, argv_utf8) + Error err = Main::setup(argv_utf8[0], argc - 1, &argv_utf8[1]); if (err != OK) { @@ -186,10 +188,12 @@ int _main() { return result; } -int main(int _argc, char **_argv) { +int main(int argc, char **argv) { + // override the arguments for the test handler / if symbol is provided + // TEST_MAIN_OVERRIDE + // _argc and _argv are ignored // we are going to use the WideChar version of them instead - #ifdef CRASH_HANDLER_EXCEPTION __try { return _main(); |