Fixed capitalization
This commit is contained in:
@@ -29,19 +29,19 @@ void except_raise(const struct Exception *e, const char *file, int line);
|
||||
|
||||
// Try Catch MACROS - LINUX
|
||||
#define RAISE(e) except_raise(&(e), __FILE__, __LINE__)
|
||||
#define RERAISE except_raise(Except_frame.exception, \
|
||||
Except_frame.file, Except_frame.line)
|
||||
#define RERAISE except_raise(except_frame.exception, \
|
||||
except_frame.file, except_frame.line)
|
||||
#define RETURN switch (Except_stack = Except_stack->prev,0) default: return
|
||||
#define TRY do { \
|
||||
volatile int Except_flag; \
|
||||
Except_Frame Except_frame; \
|
||||
Except_frame.prev = Except_stack; \
|
||||
Except_stack = &Except_frame; \
|
||||
Except_flag = setjmp(Except_frame.env); \
|
||||
Except_Frame except_frame; \
|
||||
except_frame.prev = Except_stack; \
|
||||
Except_stack = &except_frame; \
|
||||
Except_flag = setjmp(except_frame.env); \
|
||||
if (Except_flag == EXCEPT_STATE_ENTERED) {
|
||||
#define EXCEPT(e) \
|
||||
if (Except_flag == EXCEPT_STATE_ENTERED) Except_stack = Except_stack->prev; \
|
||||
} else if (Except_frame.exception == &(e)) { \
|
||||
} else if (except_frame.exception == &(e)) { \
|
||||
Except_flag = EXCEPT_STATE_HANDLED;
|
||||
#define ELSE \
|
||||
if (Except_flag == EXCEPT_STATE_ENTERED) Except_stack = Except_stack->prev; \
|
||||
@@ -68,20 +68,20 @@ extern void except_push(Except_Frame *fp);
|
||||
extern void except_pop(void);
|
||||
|
||||
#define RAISE(e) except_raise(&(e), __FILE__, __LINE__)
|
||||
#define RERAISE except_raise(Except_frame.exception, \
|
||||
Except_frame.file, Except_frame.line)
|
||||
#define RERAISE except_raise(except_frame.exception, \
|
||||
except_frame.file, except_frame.line)
|
||||
#define RETURN switch (Except_pop(),0) default: return
|
||||
#define TRY do { \
|
||||
volatile int Except_flag; \
|
||||
Except_Frame Except_frame; \
|
||||
Except_Frame except_frame; \
|
||||
if (Except_index == -1) \
|
||||
Except_init(); \
|
||||
Except_push(&Except_frame); \
|
||||
Except_flag = setjmp(Except_frame.env); \
|
||||
Except_push(&except_frame); \
|
||||
Except_flag = setjmp(except_frame.env); \
|
||||
if (Except_flag == EXCEPT_STATE_ENTERED) {
|
||||
#define EXCEPT(e) \
|
||||
if (Except_flag == EXCEPT_STATE_ENTERED) Except_pop(); \
|
||||
} else if (Except_frame.exception == &(e)) { \
|
||||
} else if (except_frame.exception == &(e)) { \
|
||||
Except_flag = EXCEPT_STATE_HANDLED;
|
||||
#define ELSE \
|
||||
if (Except_flag == EXCEPT_STATE_ENTERED) Except_pop(); \
|
||||
|
||||
Reference in New Issue
Block a user