Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ifcb907d159b67e6f27a5191553824fe2ed25ef5d
Reviewed-on: https://review.lttng.org/c/babeltrace/+/4534
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
#include "common/macros.h"
#include "common/safe.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define BT_COMMON_COLOR_RESET "\033[0m"
#define BT_COMMON_COLOR_BOLD "\033[1m"
#define BT_COMMON_COLOR_FG_DEFAULT "\033[39m"
str->str[len + 1] = '\0';
}
+#ifdef __cplusplus
+}
+#endif
+
#endif /* BABELTRACE_COMMON_INTERNAL_H */
#include <stdbool.h>
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
static inline
bool bt_safe_to_mul_int64(int64_t a, int64_t b)
{
{
return a <= UINT64_MAX - b;
}
+
+#ifdef __cplusplus
+}
+#endif