2
0

testing-helpers.h 474 B

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