projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bin: compile lttng-sessiond as C++
[lttng-tools.git]
/
src
/
common
/
testpoint
/
testpoint.h
diff --git
a/src/common/testpoint/testpoint.h
b/src/common/testpoint/testpoint.h
index 1f856f39761e61129328180849116e9b08486525..b613b1749dab4d4258bffc0857ad745d4883fe74 100644
(file)
--- a/
src/common/testpoint/testpoint.h
+++ b/
src/common/testpoint/testpoint.h
@@
-14,6
+14,10
@@
#include <urcu.h> /* for caa_likely/unlikely */
#include <urcu.h> /* for caa_likely/unlikely */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int lttng_testpoint_activated;
void *lttng_testpoint_lookup(const char *name);
extern int lttng_testpoint_activated;
void *lttng_testpoint_lookup(const char *name);
@@
-43,7
+47,7
@@
void *lttng_testpoint_lookup(const char *name);
ret = tp(); \
} else { \
if (!found) { \
ret = tp(); \
} else { \
if (!found) { \
- tp = lttng_testpoint_lookup(tp_name); \
+ tp =
(int (*)(void))
lttng_testpoint_lookup(tp_name); \
if (tp) { \
found = 1; \
ret = tp(); \
if (tp) { \
found = 1; \
ret = tp(); \
@@
-59,4
+63,8
@@
void *lttng_testpoint_lookup(const char *name);
#define TESTPOINT_DECL(name) \
_TESTPOINT_DECL(name)
#define TESTPOINT_DECL(name) \
_TESTPOINT_DECL(name)
+#ifdef __cplusplus
+}
+#endif
+
#endif /* NTESTPOINT */
#endif /* NTESTPOINT */
This page took
0.024941 seconds
and
4
git commands to generate.