diff options
author | Damien George <damien.p.george@gmail.com> | 2016-12-22 10:49:54 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-12-22 10:49:54 +1100 |
commit | c305ae32436e37327d33df979d57d9ac1fb822c1 (patch) | |
tree | 3c2aa1226eac6f12509c3da88ffe8d3d654c7f06 /py/lexer.c | |
parent | f4aebafe7ae033d6bcde87d71108f488ed4a3251 (diff) | |
download | micropython-c305ae32436e37327d33df979d57d9ac1fb822c1.tar.gz micropython-c305ae32436e37327d33df979d57d9ac1fb822c1.zip |
py/lexer: Permanently disable the mp_lexer_show_token function.
The lexer is very mature and this debug function is no longer used. If
it's really needed one can uncomment it and recompile.
Diffstat (limited to 'py/lexer.c')
-rw-r--r-- | py/lexer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/py/lexer.c b/py/lexer.c index 6c8ac9aeed..458fba0900 100644 --- a/py/lexer.c +++ b/py/lexer.c @@ -792,7 +792,9 @@ void mp_lexer_to_next(mp_lexer_t *lex) { mp_lexer_next_token_into(lex, false); } -#if MICROPY_DEBUG_PRINTERS +#if 0 +// This function is used to print the current token and should only be +// needed to debug the lexer, so it's not available via a config option. void mp_lexer_show_token(const mp_lexer_t *lex) { printf("(" UINT_FMT ":" UINT_FMT ") kind:%u str:%p len:%zu", lex->tok_line, lex->tok_column, lex->tok_kind, lex->vstr.buf, lex->vstr.len); if (lex->vstr.len > 0) { |