diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-16 23:48:30 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-16 23:48:30 +1100 |
commit | 99d16b51f142281f7d81cf3f704aff0e97bd1feb (patch) | |
tree | 4c650b9eb3c9299ab303fc918a1c263b3fa4637f /test/unit | |
parent | 4ac2ffc2fe88b80ad44fe495ff71912bceb4375a (diff) | |
download | scintilla-mirror-99d16b51f142281f7d81cf3f704aff0e97bd1feb.tar.gz |
Convert Platform from a class to a namespace. Does not change callers.
Make Assert, DebugPrintf, and similar noexcept so they can be used in noexcept
methods and they don't throw.
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/unitTest.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/unitTest.cxx b/test/unit/unitTest.cxx index bff1f9e56..de09fa67e 100644 --- a/test/unit/unitTest.cxx +++ b/test/unit/unitTest.cxx @@ -57,12 +57,12 @@ using namespace Scintilla; // Needed for PLATFORM_ASSERT in code being tested -void Platform::Assert(const char *c, const char *file, int line) { +void Platform::Assert(const char *c, const char *file, int line) noexcept { fprintf(stderr, "Assertion [%s] failed at %s %d\n", c, file, line); abort(); } -void Platform::DebugPrintf(const char *format, ...) { +void Platform::DebugPrintf(const char *format, ...) noexcept { char buffer[2000]; va_list pArguments; va_start(pArguments, format); |