mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-12-23 05:36:47 +00:00
Treat #warning like #warn
This commit is contained in:
parent
be6ed3c64f
commit
c5c85ddb96
1 changed files with 1 additions and 1 deletions
|
|
@ -419,7 +419,7 @@ impl Preprocessor {
|
|||
expect_token!(() = Token::Punct(Punctuation::Newline));
|
||||
self.defines.remove(&define_name); // TODO: warn if none
|
||||
}
|
||||
"warn" | "error" => {
|
||||
"warning" | "warn" | "error" => {
|
||||
// TODO: report warnings as warnings rather than errors
|
||||
expect_token!((text) = Token::String(text));
|
||||
return Err(DMError::new(self.last_input_loc, format!("#{} {}", ident, text)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue