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