Lines Matching refs:_func
206 #define CONSTRUCT(_func) static void _func (void) __attribute__((constructor));
207 #define DESTRUCT(_func) static void _func (void) __attribute__((destructor));
209 #define CONSTRUCT(_func) \
210 static void _func(void); \
211 static int _func ## _wrapper(void) { _func(); return 0; } \
213 __declspec(allocate(".CRT$XCU")) static int (* _array ## _func)(void) = _func ## _wrapper;
215 #define DESTRUCT(_func) \
216 static void _func(void); \
217 static int _func ## _constructor(void) { atexit (_func); return 0; } \
219 __declspec(allocate(".CRT$XCU")) static int (* _array ## _func)(void) = _func ## _constructor;
222 #define CONSTRUCT(_func)
223 #define DESTRUCT(_func)