1
Fork 0
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:
Ali Mohammad Pur 2023-06-17 22:41:56 +03:30 committed by Andreas Kling
parent 543ccecc0b
commit 12a900b97c

View file

@ -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);