mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
LibRegex: Replace fprintf()/printf() with warnln()/outln()/dbgln()
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "RegexLexer.h"
|
||||
#include <AK/Assertions.h>
|
||||
#include <AK/Debug.h>
|
||||
#include <AK/Format.h>
|
||||
#include <stdio.h>
|
||||
|
||||
namespace regex {
|
||||
@@ -130,8 +131,7 @@ Token Lexer::next()
|
||||
case '\\':
|
||||
return 2;
|
||||
default:
|
||||
if constexpr (REGEX_DEBUG)
|
||||
fprintf(stderr, "[LEXER] Found invalid escape sequence: \\%c (the parser will have to deal with this!)\n", peek(1));
|
||||
dbgln_if(REGEX_DEBUG, "[LEXER] Found invalid escape sequence: \\{:c} (the parser will have to deal with this!)", peek(1));
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user