Go to the documentation of this file.
23 #ifndef INCLUDED_CODE_GENERATION
24 #define INCLUDED_CODE_GENERATION
41 #define STMT(STMT_code__) do { STMT_code__; } while(false)
49 #define ONCE(ONCE_code__)\
51 static bool ONCE_done__ = false;\
65 #define ONCE_NOT(ONCE_code__)\
67 static bool ONCE_done__ = false;\
82 #define AT_STARTUP(code__)\
83 namespace { struct UID__\
96 #define SAFE_NEW(type, ptr)\
102 catch(std::bad_alloc&)\
111 #define SAFE_DELETE(p)\
121 #define SAFE_ARRAY_DELETE(p)\
131 #define SAFE_FREE(p)\
137 #endif // #ifndef INCLUDED_CODE_GENERATION