diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-14 19:43:30 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-14 19:43:30 -0800 |
| commit | 2c43d65c7db47f2b682b8924669b8e6aef22ec0a (patch) | |
| tree | 54eef343d568fa5272b9114fab2d40c197076ae8 /vm.h | |
| parent | 3cd61e3abc79a80d38afa9c633c59585aeb0311a (diff) | |
Made all the heap garbage collection code optional, which saves some
time and memory.
Diffstat (limited to 'vm.h')
| -rw-r--r-- | vm.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |
