mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-10 05:02:54 +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
Notes:
sideshowbarker
2024-07-19 05:54:47 +09:00
Author: https://github.com/awesomekling
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