diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-18 18:14:09 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-18 18:14:09 +1100 |
commit | cb7f77559b1682e7655af5a88b5bbeb63899eca4 (patch) | |
tree | fe5db395b9e6b344347747ef16de45a0ae2913b2 /src/Platform.h | |
parent | bac6aef730e569c6b4bcda7026bf1c1db3e827b6 (diff) | |
download | scintilla-mirror-cb7f77559b1682e7655af5a88b5bbeb63899eca4.tar.gz |
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.
Diffstat (limited to 'src/Platform.h')
-rw-r--r-- | src/Platform.h | 21 |
1 files changed, 0 insertions, 21 deletions
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 |