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