#include <lttng/lttng-error.h>
#include <common/compat/tid.h>
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
/* Avoid conflict with Solaris <sys/regset.h> */
#if defined(ERR) && defined(__sun__)
#undef ERR
DBG3(fmt, ## args); \
break; \
default: \
- assert(0); \
+ abort(); \
} \
} while(0);
const char *log_add_time(void);
/* Name must be a statically-allocated string. */
-LTTNG_HIDDEN
void logger_set_thread_name(const char *name, bool set_pthread_name);
+#if defined(__cplusplus)
+}
+#endif
+
#endif /* _ERROR_H */