diff options
author | Teddy <ted.sybil@gmail.com> | 2013-08-04 11:50:41 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2013-08-04 11:50:41 +0800 |
commit | 65f17438de5983ca010e10b4b24c5da65756a9b5 (patch) | |
tree | dfa88443d6cd10a14f587377f101e14359e98f56 /consts.h | |
parent | d42c4bd97982c1252c5ad638a11aea5319c4be7f (diff) |
added exception facilities
Diffstat (limited to 'consts.h')
-rw-r--r-- | consts.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/consts.h b/consts.h new file mode 100644 index 0000000..a4f4ae3 --- /dev/null +++ b/consts.h @@ -0,0 +1,13 @@ +#ifndef CONSTS_H +#define CONSTS_H + +enum ErrCode { + SYN_ERR_NOT_AN_ID, + SYN_ERR_CAN_NOT_APPLY, + SYN_ERR_ID_EXPECTED, + SYN_ERR_UNBOUND_VAR +}; + +extern const char *SYN_ERR_MSG[]; + +#endif |