aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Scintilla.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-05-03 03:52:19 +0000
committernyamatongwe <unknown>2009-05-03 03:52:19 +0000
commit3337bd8eeec8eec42e9f6900cc74c7068c07be71 (patch)
tree869861d1a6c1d1eb9cf7f1f2d0e2f4f6616f7cb0 /include/Scintilla.h
parent43ecd9afa99ea3466c8a055eecea0b4c4ad7b158 (diff)
downloadscintilla-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.h3
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