summaryrefslogtreecommitdiff
path: root/api_test/harness.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-28 09:43:19 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-28 09:43:19 -0800
commit4ec2c47f71a94961fc85e02baa5a9f79feff7deb (patch)
treeab854f7e3fcb34c7983313885f2b7342bcc03a33 /api_test/harness.h
parent572608d158772cef6562b8c34f370fff98855174 (diff)
parent1961ae06e96f1111f9c4316d9d08fc485008935f (diff)
Merge pull request #221 from nwellnhof/cplusplus_test
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