clock-correlation-validator: add clock correlation validation util
[babeltrace.git] / src / common / macros.h
index 903219b8779d228aae93efae7a03fc56cba61129..13ba2d3628c1abf4b36239838be6e00146224da5 100644 (file)
@@ -29,6 +29,15 @@ extern "C" {
 #define BT_EXPORT __attribute__((visibility("default")))
 #endif
 
+/*
+ * BT_NOEXCEPT: defined to `noexcept` if compiling as C++, else empty.
+ */
+#if defined(__cplusplus)
+#define BT_NOEXCEPT noexcept
+#else
+#define BT_NOEXCEPT
+#endif
+
 /* Enable `txt` if developer mode is enabled. */
 #ifdef BT_DEV_MODE
 #define BT_IF_DEV_MODE(txt) txt
This page took 0.024012 seconds and 4 git commands to generate.