src/common/{assert,macros}.h: wrap code in C++ guards
[babeltrace.git] / src / common / assert.h
index 77c35e2e14700547de416270a8d37f43739d9a58..dd9b91276730c342c1ee174bc912c52240f4893f 100644 (file)
 
 #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)
@@ -56,4 +60,8 @@ extern void bt_common_assert_failed(const char *file, int line,
 # define BT_ASSERT_DBG_FUNC    __attribute__((unused))
 #endif /* BT_DEBUG_MODE */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* BABELTRACE_ASSERT_INTERNAL_H */
This page took 0.02374 seconds and 4 git commands to generate.