tests: add extern "C" to tap.h
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 24 May 2023 16:40:15 +0000 (12:40 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 31 May 2023 19:47:48 +0000 (15:47 -0400)
This makes it possible to use it from C++ programs.

Change-Id: Ic111f493b0b048b8e491b824af293f0742bda35a
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10067
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
tests/utils/tap/tap.h

index b3e94450541e203ba38bb9c5b2c3a71fd0869252..76e70230b462cf5b715735aff141883a1e4d7929 100644 (file)
@@ -5,6 +5,10 @@
  * Copyright (C) 2017 Jérémie Galarneau
  */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* '## __VA_ARGS__' is a gcc'ism. C99 doesn't allow the token pasting
    and requires the caller to add the final comma if they've ommitted
    the optional arguments */
@@ -80,3 +84,7 @@ void todo_start(const char *, ...);
 void todo_end(void);
 
 int exit_status(void);
+
+#ifdef __cplusplus
+}
+#endif
This page took 0.02468 seconds and 4 git commands to generate.