CTWM
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/ctwm_test.h
Go to the documentation of this file.
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
11
extern
int (*
ctwm_test_postparse
)(void);
12
extern
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
ctwm_test
bool ctwm_test
Magic flag for tests. Nothing else should touch this!
Definition
ctwm_main.c:155
ctwm_test_postparse
int(* ctwm_test_postparse)(void)
Magic callback for tests.
Definition
ctwm_main.c:160
ctwm_test.h
Generated by
1.15.0