Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | mjames | 1 | #ifndef _JTEST_UTIL_H_ |
2 | #define _JTEST_UTIL_H_ |
||
3 | |||
4 | /*--------------------------------------------------------------------------------*/ |
||
5 | /* Includes */ |
||
6 | /*--------------------------------------------------------------------------------*/ |
||
7 | |||
8 | #include "util/util.h" |
||
9 | |||
10 | /*--------------------------------------------------------------------------------*/ |
||
11 | /* Macros and Defines */ |
||
12 | /*--------------------------------------------------------------------------------*/ |
||
13 | |||
14 | /* Define boolean values for the framework. */ |
||
15 | #define JTEST_TRUE 1 /**< Value used for TRUE in JTEST. */ |
||
16 | #define JTEST_FALSE 0 /**< Value used for FALSE in JTEST. */ |
||
17 | |||
18 | /** |
||
19 | * Set the value of the attribute in the struct to by struct_ptr to value. |
||
20 | */ |
||
21 | #define JTEST_SET_STRUCT_ATTRIBUTE(struct_ptr, attribute, value) \ |
||
22 | do \ |
||
23 | { \ |
||
24 | (struct_ptr)->attribute = (value); \ |
||
25 | } while (0) |
||
26 | |||
27 | #endif /* _JTEST_UTIL_H_ */ |