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:
Andreas Kling 2020-06-01 12:39:58 +02:00
parent 5944abf31c
commit db93db8100
Notes: sideshowbarker 2024-07-19 05:54:47 +09:00

View file

@ -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();