1/** 2 * Special magic for use in tests. If you're not one of our tests, you 3 * probably shouldn't be including this file. Or even looking at it. 4 * Avert your eyes! 5 */ 6 7#ifndef _CTWM_CTWM_TEST_H 8#define _CTWM_CTWM_TEST_H 9 10// extern's for our magic flag and callback connections 11extern int (*ctwm_test_postparse)(void); 12extern bool ctwm_test; 13 14 15// Provide a macro for hooking up callback 16#define TEST_POSTPARSE(cb) do { \ 17 ctwm_test = true; \ 18 ctwm_test_postparse = (cb); \ 19 } while(0) 20 21 22#endif // _CTWM_CTWM_TEST_H 23