17 #ifndef LIBCOUCHBASE_ASSERT_H
18 #define LIBCOUCHBASE_ASSERT_H 1
26 #define lcb_assert(a) \
28 fprintf(stderr, "FATAL ERROR:\n"); \
29 fprintf(stderr, " libcouchbase experienced an unrecoverable error");\
30 fprintf(stderr, " and terminates the program\n"); \
31 fprintf(stderr, " to avoid undefined behavior.\n"); \
32 fprintf(stderr, " The program should have generated a "); \
33 fprintf(stderr, "\"corefile\" which may used\n");\
34 fprintf(stderr, " to gather more information about the problem.\n"); \
35 fprintf(stderr, " If your system doesn't create \"corefiles\" I "); \
36 fprintf(stderr, "can tell you that the\n"); \
37 fprintf(stderr, " assertion failed in %s at line %d\n", __FILE__, \
41 #define lcb_assert(a) assert(a)