projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: app contexts: do not leak app context name, event field, context field
[lttng-ust.git]
/
include
/
lttng
/
ust-utils.h
diff --git
a/include/lttng/ust-utils.h
b/include/lttng/ust-utils.h
index baca88f271184840512ea97745320d8bef65e333..2a65dd5364ef21e996ea7c05d17dff9a09887e8f 100644
(file)
--- a/
include/lttng/ust-utils.h
+++ b/
include/lttng/ust-utils.h
@@
-28,7
+28,11
@@
*
* Returns true if the type of @type is signed.
*/
*
* Returns true if the type of @type is signed.
*/
-#define lttng_ust_is_signed_type(type) ((type) -1 < (type) 1)
+#if defined(__cplusplus)
+#define lttng_ust_is_signed_type(type) (std::is_signed<type>::value)
+#else
+#define lttng_ust_is_signed_type(type) ((type) -1 < (type) 1)
+#endif
/**
/**
This page took
0.023914 seconds
and
4
git commands to generate.