summaryrefslogtreecommitdiff
path: root/src/cmark.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-02-09 09:03:16 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-02-09 09:03:16 -0800
commitfdbdbf7ecc8597d2b6ae329ecbdabebaf0793fba (patch)
tree43b5e0669002c9292db7c8249bf9b55a7ada5082 /src/cmark.h
parent71ef02503ebbd82497920ecc7d580c480865c47a (diff)
Add cmark_get_default_mem_allocator().
API change: This adds a new exported function in cmark.h. Closes #330.
Diffstat (limited to 'src/cmark.h')
-rw-r--r--src/cmark.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmark.h b/src/cmark.h
index 102aa6f..a37c185 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -100,6 +100,10 @@ typedef struct cmark_mem {
void (*free)(void *);
} cmark_mem;
+/** Returns a pointer to the default memory allocator.
+ */
+CMARK_EXPORT cmark_mem *cmark_get_default_mem_allocator();
+
/**
* ## Creating and Destroying Nodes
*/