Add exception_t.exception_null to check if no exception
This commit is contained in:
parent
84cf1b0818
commit
72f71d4e2b
@ -14,3 +14,8 @@ void
|
||||
exception_free(exception_t *e) {
|
||||
free(e);
|
||||
}
|
||||
|
||||
int
|
||||
exception_null(const exception_t *e) {
|
||||
return e->type == NO_ERROR;
|
||||
}
|
||||
|
@ -21,6 +21,9 @@ exception_init();
|
||||
void
|
||||
exception_free(exception_t *e);
|
||||
|
||||
int
|
||||
exception_null(const exception_t *e);
|
||||
|
||||
char*
|
||||
exception_str(exception_t *e);
|
||||
|
||||
|
Reference in New Issue
Block a user