aboutsummaryrefslogtreecommitdiff
path: root/vm.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-14 19:43:30 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-14 19:43:30 -0800
commit2c43d65c7db47f2b682b8924669b8e6aef22ec0a (patch)
tree54eef343d568fa5272b9114fab2d40c197076ae8 /vm.h
parent3cd61e3abc79a80d38afa9c633c59585aeb0311a (diff)
Made all the heap garbage collection code optional, which saves some
time and memory.
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm.h b/vm.h
index 3e7526b..3777492 100644
--- a/vm.h
+++ b/vm.h
@@ -15,10 +15,12 @@ match_t *get_capture(match_t *m, const char **id);
__attribute__((nonnull))
void destroy_op(vm_op_t *op);
match_t *new_match(void);
-size_t free_all_matches(void);
__attribute__((nonnull))
void recycle_if_unused(match_t **at_m);
+#ifdef DEBUG_HEAP
+size_t free_all_matches(void);
size_t recycle_all_matches(void);
+#endif
#endif
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1