mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibRegex: Replace fprintf()/printf() with warnln()/outln()/dbgln()
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 17:06:41 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/dac0554fa05 Pull-request: https://github.com/SerenityOS/serenity/pull/7630
@@ -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