Back to home page

Enduro/X

 
 

    


0001 #ifndef C_ASSERTIONS_HEADER
0002 #define C_ASSERTIONS_HEADER
0003 
0004 #include <cgreen/constraint.h>
0005 #include <inttypes.h>
0006 
0007 #ifdef __cplusplus
0008 #error "Should only be included when not compiling in C++ mode. Include cpp_assertions.h instead."
0009 #endif
0010 
0011 #define assert_that_constraint(actual, constraint) assert_that_(__FILE__, __LINE__, #actual, (intptr_t)actual, constraint)
0012 
0013 /* this isn't declared in assertions.h because you can't have overloads for an extern "C"-declared function, so it seems */
0014 void assert_that_(const char *file, int line, const char *actual_string, intptr_t actual, Constraint *constraint);
0015 
0016 #endif