mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 22:24:57 +00:00
LibWeb: Put whining about tokenizer errors behind an #ifdef
Real web content has *tons* of tokenizer errors and we don't need to complain every time as that makes the debug log unbearable.
This commit is contained in:
parent
5944abf31c
commit
db93db8100
1 changed files with 4 additions and 0 deletions
|
@ -34,10 +34,14 @@
|
|||
|
||||
//#define TOKENIZER_TRACE
|
||||
|
||||
#ifdef TOKENIZER_TRACE
|
||||
#define PARSE_ERROR() \
|
||||
do { \
|
||||
dbg() << "Parse error (tokenization)" << __PRETTY_FUNCTION__ << " @ " << __LINE__; \
|
||||
} while (0)
|
||||
#else
|
||||
#define PARSE_ERROR()
|
||||
#endif
|
||||
|
||||
#define CONSUME_NEXT_INPUT_CHARACTER \
|
||||
current_input_character = next_codepoint();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue