projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clock-correlation-validator: add clock correlation validation util
[babeltrace.git]
/
src
/
common
/
macros.h
diff --git
a/src/common/macros.h
b/src/common/macros.h
index 903219b8779d228aae93efae7a03fc56cba61129..13ba2d3628c1abf4b36239838be6e00146224da5 100644
(file)
--- a/
src/common/macros.h
+++ b/
src/common/macros.h
@@
-29,6
+29,15
@@
extern "C" {
#define BT_EXPORT __attribute__((visibility("default")))
#endif
#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
/* Enable `txt` if developer mode is enabled. */
#ifdef BT_DEV_MODE
#define BT_IF_DEV_MODE(txt) txt
This page took
0.023434 seconds
and
4
git commands to generate.