CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
block.h File Reference

Block wrapping macros for automatic resource management. More...

Go to the source code of this file.

Macros

#define inhibitDeclare(name)   enum { _inhibit_name(name) = 0 }
 
#define inhibitCheck(name)   switch(tokstring(_inhibit_name(name))[_inhibit_name(name)]) default:
 
#define inhibitDisallow(name)   _blkStart _inhibitDisallow(name)
 
#define inhibitAllow(name)   _blkStart _inhibitAllow(name)
 
#define blkWrap(before, ...)   _blkStart _blkBeforeAfter(tokeval(before), __VA_ARGS__) _blkEnd
 

Detailed Description

Block wrapping macros for automatic resource management.

Definition in file block.h.