Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros
cexcept.h File Reference
#include <setjmp.h>

Go to the source code of this file.

Macros

#define define_exception_type(etype)
 
#define init_exception_context(ec)   ((void)((ec)->penv = 0))
 
#define Try
 
#define exception__catch(action)
 
#define Catch(e)   exception__catch(((e) = the_exception_context->v.etmp, 0))
 
#define Catch_anonymous   exception__catch(0)
 
#define Throw
 

Macro Definition Documentation

◆ Catch

#define Catch (   e)    exception__catch(((e) = the_exception_context->v.etmp, 0))

Definition at line 231 of file cexcept.h.

◆ Catch_anonymous

#define Catch_anonymous   exception__catch(0)

Definition at line 232 of file cexcept.h.

◆ define_exception_type

#define define_exception_type (   etype)
Value:
struct exception_context { \
jmp_buf *penv; \
int caught; \
volatile struct { etype etmp; } v; \
}
const GLdouble * v

Definition at line 196 of file cexcept.h.

◆ exception__catch

#define exception__catch (   action)
Value:
while (the_exception_context->caught = 0, \
} \
else { \
the_exception_context->caught = 1; \
} \
the_exception_context->penv = exception__prev; \
} \
if (!the_exception_context->caught || action) { } \
else
struct exception_context the_exception_context[1]
Definition: PngFile.c:22

Definition at line 219 of file cexcept.h.

◆ init_exception_context

#define init_exception_context (   ec)    ((void)((ec)->penv = 0))

Definition at line 209 of file cexcept.h.

◆ Throw

#define Throw
Value:
for (;; longjmp(*the_exception_context->penv, 1)) \
struct exception_context the_exception_context[1]
Definition: PngFile.c:22

Definition at line 243 of file cexcept.h.

◆ Try

#define Try
Value:
{ \
jmp_buf *exception__prev, exception__env; \
exception__prev = the_exception_context->penv; \
the_exception_context->penv = &exception__env; \
if (setjmp(exception__env) == 0) { \
do
struct exception_context the_exception_context[1]
Definition: PngFile.c:22

Definition at line 211 of file cexcept.h.