mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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: https://github.com/SerenityOS/serenity/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…
Reference in a new issue