diff options
author | Gavin Howard <gavin@yzena.com> | 2021-07-21 15:45:43 -0600 |
---|---|---|
committer | Gavin Howard <gavin@yzena.com> | 2021-07-21 15:45:43 -0600 |
commit | ef3a088c58ca54c169ca953e2bde6c3363129606 (patch) | |
tree | a2cd962602697e00dffd272e55cc37b355d62680 /src | |
parent | ea28440052b38a17bfe835c6a367ec573dee7c2f (diff) | |
download | platform_external_bc-ef3a088c58ca54c169ca953e2bde6c3363129606.tar.gz platform_external_bc-ef3a088c58ca54c169ca953e2bde6c3363129606.tar.bz2 platform_external_bc-ef3a088c58ca54c169ca953e2bde6c3363129606.zip |
Make a function only available in debug
This is bc_parse_free(). As of a recent change, it is only called on
exit, so we are free to make this change.
Signed-off-by: Gavin Howard <gavin@yzena.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parse.c b/src/parse.c index 4d36010f..bd9e8586 100644 --- a/src/parse.c +++ b/src/parse.c @@ -200,6 +200,7 @@ void bc_parse_reset(BcParse *p) { if (BC_ERR(vm.status)) BC_JMP; } +#ifndef NDEBUG void bc_parse_free(BcParse *p) { BC_SIG_ASSERT_LOCKED; @@ -219,6 +220,7 @@ void bc_parse_free(BcParse *p) { bc_lex_free(&p->l); } +#endif // NDEBUG void bc_parse_init(BcParse *p, BcProgram *prog, size_t func) { |