1 /* Function definitions that are used by multiple tests. */
3 #define CHECK_CHAR(TYPE) \
4 void check##TYPE (TYPE p, int i) \
5 { if (p.c != (char)i) DEBUG_CHECK }
13 #define CHECK_SHORT(TYPE) \
14 void check##TYPE (TYPE p, int i) \
15 { if (p.s != (short)i) DEBUG_CHECK }
22 #define CHECK_INT(TYPE) \
23 void check##TYPE (TYPE p, int i) \
24 { if (p.i != i) DEBUG_CHECK }
30 #define CHECK_LONG(TYPE) \
31 void check##TYPE (TYPE p, int i) \
32 { if (p.l != (long)i) DEBUG_CHECK }