Not strictly needed for `macros.h`, but adding it just in case.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I6d13ab5a062c6c5b1ecaa996c119a149d2487f0b
Reviewed-on: https://review.lttng.org/c/babeltrace/+/4504
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
#include "common/macros.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
BT_HIDDEN
extern void bt_common_assert_failed(const char *file, int line,
const char *func, const char *assertion)
# define BT_ASSERT_DBG_FUNC __attribute__((unused))
#endif /* BT_DEBUG_MODE */
+#ifdef __cplusplus
+}
+#endif
+
#endif /* BABELTRACE_ASSERT_INTERNAL_H */
#ifndef _BABELTRACE_INTERNAL_H
#define _BABELTRACE_INTERNAL_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define bt_max_t(type, a, b) \
((type) (a) > (type) (b) ? (type) (a) : (type) (b))
((void) sizeof((void) (_expr1), (void) (_expr2), \
(void) (_expr3), (void) (_expr4), (void) (_expr5), 0))
+#ifdef __cplusplus
+}
+#endif
+
#endif