diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-05-02 08:17:23 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-05-02 08:17:23 +1000 |
| commit | 90ff87db7b368addb01191205570ba71054986e7 (patch) | |
| tree | 2214e5adce2a845e47a5d5362cfd5a5db0cfe45f | |
| parent | b9eddfa525c24eaf435800b192e23b0e692d9dcf (diff) | |
| download | scintilla-mirror-90ff87db7b368addb01191205570ba71054986e7.tar.gz | |
Backport: Allow disabling automatically generated #define constants.
This is for applications that want access to the structures and function
definitions but define constants with enum or constexpr.
Backport of changeset 8224:89f7a797f5a5.
| -rw-r--r-- | include/Scintilla.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index c2d289bab..f709b1534 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -38,6 +38,8 @@ typedef intptr_t sptr_t; typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam); +#ifndef SCI_DISABLE_AUTOGENERATED + /* ++Autogenerated -- start of section automatically generated from Scintilla.iface */ #define INVALID_POSITION -1 #define SCI_START 2000 @@ -1151,6 +1153,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #endif /* --Autogenerated -- end of section automatically generated from Scintilla.iface */ +#endif + /* These structures are defined to be exactly the same shape as the Win32 * CHARRANGE, TEXTRANGE, FINDTEXTEX, FORMATRANGE, and NMHDR structs. * So older code that treats Scintilla as a RichEdit will work. */ |
