diff options
author | nyamatongwe <devnull@localhost> | 2009-05-03 03:52:19 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-05-03 03:52:19 +0000 |
commit | 37f710d4eea40efa99d8c1973f69f0fcf3e07aec (patch) | |
tree | 869861d1a6c1d1eb9cf7f1f2d0e2f4f6616f7cb0 /include/Scintilla.h | |
parent | f215b1c33bc8fac405d7b82f6697fc7b9332369b (diff) | |
download | scintilla-mirror-37f710d4eea40efa99d8c1973f69f0fcf3e07aec.tar.gz |
Turned on exceptions.
Translate exceptions into status codes before leaving Scintilla.
Pick up status codes in SciTE and throw a ScintillaFailure exception.
SciTE on Windows catches ScintillaFailure, shows message and exits.
Diffstat (limited to 'include/Scintilla.h')
-rw-r--r-- | include/Scintilla.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index 3d61be26f..677cd0325 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -558,6 +558,9 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_GETMODEVENTMASK 2378 #define SCI_SETFOCUS 2380 #define SCI_GETFOCUS 2381 +#define SC_STATUS_OK 0 +#define SC_STATUS_FAILURE 1 +#define SC_STATUS_BADALLOC 2 #define SCI_SETSTATUS 2382 #define SCI_GETSTATUS 2383 #define SCI_SETMOUSEDOWNCAPTURES 2384 |