mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-08-15 23:08:27 +02:00
Update with https://www.scintilla.org/scintilla521.zip https://www.scintilla.org/lexilla515.zip - fix setting to bring Scintilla::PositionCR from ScintillaStructures.h inline with Sci_Position.h Sci_PositionCR - add workaround to enable lexer for searchResult commented out SCI_SETILEXER call on searchResult to get one result which is correctly handled by the lexer, added comment about the current problem with property @MarkingsStruct which seems to disappear after call to SCI_SETILEXER or CreateLexer - corrected usage of ObjC lexer - removed unnecessary filter stuff - use own sections for scintilla and lexilla build targets and allow parallel builds - as libscilex is no longer existing, changed to libscintilla - adapt makefiles and cmake - use VS2019 - started simple changes for createlexer adaptations, nullpointercheck missing on return of lexer name from deprecated LexerNameFromID -> undefined behaviour - movement from id -> lexer name, mostly done via LexerNameFromID + switching off corresponding compiler warning - changed to SCI_SETILEXER from SCI_SETLEXER, SCI_SETLEXERLANGUAGE needs to be corrected, see Scintilla5Migration.html - just commented out: SCI_LOADLEXERLIBRARY Fix #10504, close #11419
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
// Scintilla source code edit control
|
|
/** @file Debugging.h
|
|
** Assert and debug trace functions.
|
|
** Implemented in each platform layer.
|
|
**/
|
|
// Copyright 1998-2009 by Neil Hodgson <neilh@scintilla.org>
|
|
// The License.txt file describes the conditions under which this software may be distributed.
|
|
|
|
#ifndef DEBUGGING_H
|
|
#define DEBUGGING_H
|
|
|
|
namespace Scintilla::Internal {
|
|
|
|
#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 segregate debugging functions.
|
|
*/
|
|
namespace Platform {
|
|
|
|
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::Internal::Platform::Assert(#c, __FILE__, __LINE__))
|
|
#endif
|
|
|
|
}
|
|
|
|
#endif
|