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 | 436402964655f4816e9526b804a5f19b273d6adc (patch) | |
| tree | 980accf339404b311e1e465ec6355036bfd0fa79 | |
| parent | eeb78374523313ccb55b55ca54985fb3483615a4 (diff) | |
| download | scintilla-mirror-436402964655f4816e9526b804a5f19b273d6adc.tar.gz | |
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.
| -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 4f5be6427..ad36c19b2 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 @@ -1154,6 +1156,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. */ | 
