From cb7f77559b1682e7655af5a88b5bbeb63899eca4 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 18 Mar 2021 18:14:09 +1100 Subject: Move assert and debug trace functions into their own header Debugging.h. PLATFORM_ASSERT is used in data structure headers which led to including graphics and windowing APIs in data structure modules. --- src/Platform.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/Platform.h') diff --git a/src/Platform.h b/src/Platform.h index 33116999c..5ba79a936 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -313,16 +313,6 @@ public: void Show(Point pt, const Window &w); }; -#if defined(__clang__) -# if __has_feature(attribute_analyzer_noreturn) -# define CLANG_ANALYZER_NORETURN __attribute__((analyzer_noreturn)) -# else -# define CLANG_ANALYZER_NORETURN -# endif -#else -# define CLANG_ANALYZER_NORETURN -#endif - /** * Platform namespace used to retrieve system wide parameters such as double click speed * and chrome colour. @@ -338,19 +328,8 @@ constexpr long LongFromTwoShorts(short a,short b) noexcept { return (a) | ((b) << 16); } -void DebugDisplay(const char *s) noexcept; -void DebugPrintf(const char *format, ...) noexcept; -bool ShowAssertionPopUps(bool assertionPopUps_) noexcept; -void Assert(const char *c, const char *file, int line) noexcept CLANG_ANALYZER_NORETURN; - } -#ifdef NDEBUG -#define PLATFORM_ASSERT(c) ((void)0) -#else -#define PLATFORM_ASSERT(c) ((c) ? (void)(0) : Scintilla::Platform::Assert(#c, __FILE__, __LINE__)) -#endif - } #endif -- cgit v1.2.3