You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.0 KiB
27 lines
1.0 KiB
#ifndef _JTEST_UTIL_H_
|
|
#define _JTEST_UTIL_H_
|
|
|
|
/*--------------------------------------------------------------------------------*/
|
|
/* Includes */
|
|
/*--------------------------------------------------------------------------------*/
|
|
|
|
#include "util/util.h"
|
|
|
|
/*--------------------------------------------------------------------------------*/
|
|
/* Macros and Defines */
|
|
/*--------------------------------------------------------------------------------*/
|
|
|
|
/* Define boolean values for the framework. */
|
|
#define JTEST_TRUE 1 /**< Value used for TRUE in JTEST. */
|
|
#define JTEST_FALSE 0 /**< Value used for FALSE in JTEST. */
|
|
|
|
/**
|
|
* Set the value of the attribute in the struct to by struct_ptr to value.
|
|
*/
|
|
#define JTEST_SET_STRUCT_ATTRIBUTE(struct_ptr, attribute, value) \
|
|
do \
|
|
{ \
|
|
(struct_ptr)->attribute = (value); \
|
|
} while (0)
|
|
|
|
#endif /* _JTEST_UTIL_H_ */
|
|
|