diff options
author | Neil <nyamatongwe@gmail.com> | 2021-05-24 19:31:06 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-05-24 19:31:06 +1000 |
commit | 92290868cf9753d2df0d494cb44e2ff62a570b58 (patch) | |
tree | 001e6cfce84372a03997de3138d630751ee8d38a /src/Debugging.h | |
parent | ee1886079d0a5cd350ee8e3379be347943ba93ae (diff) | |
download | scintilla-mirror-92290868cf9753d2df0d494cb44e2ff62a570b58.tar.gz |
Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.h
and ScintillaStructures.h using scoped enumerations.
Use these headers instead of Scintilla.h internally.
External definitions go in the Scintilla namespace and internal definitio0ns in
Scintilla::Internal.
Diffstat (limited to 'src/Debugging.h')
-rw-r--r-- | src/Debugging.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Debugging.h b/src/Debugging.h index b7ea20b98..5221ff8e3 100644 --- a/src/Debugging.h +++ b/src/Debugging.h @@ -9,7 +9,7 @@ #ifndef DEBUGGING_H #define DEBUGGING_H -namespace Scintilla { +namespace Scintilla::Internal { #if defined(__clang__) # if __has_feature(attribute_analyzer_noreturn) @@ -36,7 +36,7 @@ void Assert(const char *c, const char *file, int line) noexcept CLANG_ANALYZER_N #ifdef NDEBUG #define PLATFORM_ASSERT(c) ((void)0) #else -#define PLATFORM_ASSERT(c) ((c) ? (void)(0) : Scintilla::Platform::Assert(#c, __FILE__, __LINE__)) +#define PLATFORM_ASSERT(c) ((c) ? (void)(0) : Scintilla::Internal::Platform::Assert(#c, __FILE__, __LINE__)) #endif } |