summaryrefslogtreecommitdiff
path: root/api_test/harness.h
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-11-28 15:36:19 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2014-11-28 15:40:35 +0100
commit1961ae06e96f1111f9c4316d9d08fc485008935f (patch)
treeab854f7e3fcb34c7983313885f2b7342bcc03a33 /api_test/harness.h
parent572608d158772cef6562b8c34f370fff98855174 (diff)
Test that libcmark can be used by C++ code
Diffstat (limited to 'api_test/harness.h')
-rw-r--r--api_test/harness.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/api_test/harness.h b/api_test/harness.h
index 5fdc7ae..55a6232 100644
--- a/api_test/harness.h
+++ b/api_test/harness.h
@@ -1,6 +1,10 @@
#ifndef CMARK_API_TEST_HARNESS_H
#define CMARK_API_TEST_HARNESS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
int test_num;
int num_passed;
@@ -30,5 +34,9 @@ test_ok(test_batch_runner *runner);
void
test_print_summary(test_batch_runner *runner);
+#ifdef __cplusplus
+}
+#endif
+
#endif