2014-09-21 23:32:14 +08:00
|
|
|
#ifndef __EXCEPTIONS_H
|
|
|
|
#define __EXCEPTIONS_H
|
|
|
|
|
2014-09-22 13:18:48 +08:00
|
|
|
enum {
|
|
|
|
EID_NOMEM = 0
|
2014-09-21 23:32:14 +08:00
|
|
|
};
|
|
|
|
|
2014-09-22 13:18:48 +08:00
|
|
|
void *exception_push(void);
|
2014-09-21 23:32:14 +08:00
|
|
|
void exception_pop(void);
|
2014-09-22 13:18:48 +08:00
|
|
|
int exception_getid(void);
|
2014-09-21 23:32:14 +08:00
|
|
|
void exception_raise(int id) __attribute__((noreturn));
|
|
|
|
|
|
|
|
#endif /* __EXCEPTIONS_H */
|