Add proper per-file copyright notices/licenses and top-level license.
[bluesky.git] / TBBT / trace_play / rfs_assert.h
1 #ifndef RFS_ASSERT_H
2 #define RFS_ASSERT_H
3 #define RFS_ASSERT(condition)                                       \
4     if (!(condition)) {                                             \
5         fprintf(stderr, "Assertion failed: line %d, file \"%s\"\n", \
6                             __LINE__, __FILE__);                        \
7                 fflush(stdout); \
8                 fflush(stdout); \
9                 fflush(stderr); \
10                 fflush(stderr); \
11                 exit(-1); \
12     }
13 #endif