| 1 |
#ifndef testing_helpers_h |
| 2 |
#define testing_helpers_h |
| 3 |
|
| 4 |
// This is a helper file to easily add static_asserts to C / C++ tests. |
| 5 |
|
| 6 |
#ifndef __cplusplus |
| 7 |
#include <assert.h> |
| 8 |
#endif |
| 9 |
|
| 10 |
#if defined(CBINDGEN_STYLE_TAG) && !defined(__cplusplus) |
| 11 |
#define CBINDGEN_STRUCT(name) struct name |
| 12 |
#define CBINDGEN_UNION(name) union name |
| 13 |
#define CBINDGEN_ENUM(name) enum name |
| 14 |
#else |
| 15 |
#define CBINDGEN_STRUCT(name) name |
| 16 |
#define CBINDGEN_UNION(name) name |
| 17 |
#define CBINDGEN_ENUM(name) name |
| 18 |
#endif |
| 19 |
|
| 20 |
#endif |