mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
LibCpp: Ignore the #error preprocessor directive
This commit is contained in:
parent
543ccecc0b
commit
12a900b97c
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