*/
/*
- * The macros in this header use macros defined in
- * <lib/lib-logging.h>. We don't want this header to
- * automatically include <lib/lib-logging.h> because you
- * need to manually define BT_LOG_TAG before including
- * <lib/lib-logging.h> and it is unexpected that you
+ * The macros in this header use macros defined in "lib/logging.h".
+ * We don't want this header to automatically include
+ * "lib/logging.h" because you need to manually define BT_LOG_TAG
+ * before including "lib/logging.h" and it is unexpected that you
* also need to define it before including this header.
*
- * This is a reminder that in order to use
- * <lib/assert-pre.h>, you also need to use logging
- * explicitly.
+ * This is a reminder that in order to use "lib/assert-pre.h", you also
+ * need to use logging explicitly.
*/
-#ifndef BABELTRACE_LIB_LOGGING_INTERNAL_H
-# error Include <lib/lib-logging.h> before this header.
+#ifndef BT_LIB_LOG_SUPPORTED
+# error Include "lib/logging.h" before this header.
#endif
#include <stdlib.h>
#include <inttypes.h>
-#include "common/babeltrace.h"
+#include "common/macros.h"
#ifdef BT_DEV_MODE
/*
# define BT_ASSERT_PRE_MSG BT_LIB_LOGF
#else
# define BT_ASSERT_PRE(_cond, _fmt, ...) ((void) sizeof((void) (_cond), 0))
-# define BT_ASSERT_PRE_FUNC BT_UNUSED
+# define BT_ASSERT_PRE_FUNC __attribute__((unused))
# define BT_ASSERT_PRE_MSG(_fmt, ...)
#endif /* BT_DEV_MODE */