diff options
author | nyamatongwe <unknown> | 2009-05-03 03:52:19 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-05-03 03:52:19 +0000 |
commit | 3337bd8eeec8eec42e9f6900cc74c7068c07be71 (patch) | |
tree | 869861d1a6c1d1eb9cf7f1f2d0e2f4f6616f7cb0 /include/Scintilla.h | |
parent | 43ecd9afa99ea3466c8a055eecea0b4c4ad7b158 (diff) | |
download | scintilla-mirror-3337bd8eeec8eec42e9f6900cc74c7068c07be71.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 |