From 99d16b51f142281f7d81cf3f704aff0e97bd1feb Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 16 Mar 2021 23:48:30 +1100 Subject: 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. --- test/unit/unitTest.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/unit') 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); -- cgit v1.2.3