#include <setjmp.h>
Go to the source code of this file.
◆ Catch
◆ Catch_anonymous
◆ define_exception_type
#define define_exception_type |
( |
|
etype | ) |
|
Value:struct exception_context { \
jmp_buf *penv; \
int caught; \
volatile
struct { etype etmp; }
v; \
}
Definition at line 196 of file cexcept.h.
◆ exception__catch
#define exception__catch |
( |
|
action | ) |
|
Value: } \
else { \
the_exception_context->caught = 1; \
} \
the_exception_context->penv = exception__prev; \
} \
else
struct exception_context the_exception_context[1]
Definition at line 219 of file cexcept.h.
◆ init_exception_context
#define init_exception_context |
( |
|
ec | ) |
((void)((ec)->penv = 0)) |
◆ Throw
Value:struct exception_context the_exception_context[1]
Definition at line 243 of file cexcept.h.
◆ Try
Value:{ \
jmp_buf *exception__prev, exception__env; \
the_exception_context->penv = &exception__env; \
if (setjmp(exception__env) == 0) { \
do
struct exception_context the_exception_context[1]
Definition at line 211 of file cexcept.h.