summaryrefslogtreecommitdiff
path: root/api_test/main.c
diff options
context:
space:
mode:
authorAndrius Bentkus <andrius.bentkus@gmail.com>2015-06-25 11:14:00 +0200
committerAndrius Bentkus <andrius.bentkus@gmail.com>2015-06-25 17:31:34 +0200
commit06b355f5a97bd5fb19cfad7e8065d5e8a6c37bce (patch)
tree3b658b774f028c7a0b9962411a4a6a3e21850b42 /api_test/main.c
parent2f945071616d226296068e3c61b6de2e64c813cf (diff)
Changed version variables to functions.
This is easier to access using ffi, since some languages, like C# like to use only function interfaces for accessing library functionality. fixes #60
Diffstat (limited to 'api_test/main.c')
-rw-r--r--api_test/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/api_test/main.c b/api_test/main.c
index 666af4d..104371c 100644
--- a/api_test/main.c
+++ b/api_test/main.c
@@ -55,8 +55,8 @@ test_continuation_byte(test_batch_runner *runner, const char *utf8);
static void
version(test_batch_runner *runner)
{
- INT_EQ(runner, cmark_version, CMARK_VERSION, "cmark_version");
- STR_EQ(runner, cmark_version_string, CMARK_VERSION_STRING,
+ INT_EQ(runner, cmark_version(), CMARK_VERSION, "cmark_version");
+ STR_EQ(runner, cmark_version_string(), CMARK_VERSION_STRING,
"cmark_version_string");
}