NodeC  0.1
Linear Handlers

Linear handlers can be scoped inline and are very efficient. More...

Macros

#define LH_LINEAR_EXIT(hdef, local, do_release, after)
 
#define LH_LINEAR(hdef, local, do_release)
 
#define LH_DEFER_EXIT(after, release_fun, local)
 
#define LH_DEFER(release_fun, local)
 
#define LH_ON_ABORT(release_fun, local)
 

Functions

void lh_nothing ()
 
ptrdiff_t _lh_linear_handler_init (const lh_handlerdef *hdef, lh_value local, bool *init)
 
void _lh_linear_handler_done (ptrdiff_t id, bool init, bool do_release)
 

Detailed Description

Linear handlers can be scoped inline and are very efficient.

These are used to define implicit parameters, defer, and exceptions.