mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 23:30:20 +00:00
LibCpp: Ignore the #error preprocessor directive
This commit is contained in:
parent
543ccecc0b
commit
12a900b97c
Notes:
sideshowbarker
2024-07-17 03:27:40 +09:00
Author: https://github.com/alimpfard
Commit: 12a900b97c
Pull-request: https://github.com/SerenityOS/serenity/pull/19447
Reviewed-by: https://github.com/AtkinsSJ
1 changed files with 4 additions and 0 deletions
|
@ -230,6 +230,10 @@ void Preprocessor::handle_preprocessor_keyword(StringView keyword, GenericLexer&
|
|||
line_lexer.consume_all();
|
||||
return;
|
||||
}
|
||||
if (keyword == "error") {
|
||||
line_lexer.consume_all();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_options.ignore_unsupported_keywords) {
|
||||
dbgln("Unsupported preprocessor keyword: {}", keyword);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue