Add PreInc

This commit is contained in:
flameyosflow 2025-12-16 12:11:19 +02:00
commit d247aa46eb
2 changed files with 3 additions and 0 deletions

View file

@ -267,6 +267,7 @@ pub enum UnOp {
Not,
Ref,
Deref,
PreInc
}
#[derive(Debug, Clone)]

View file

@ -122,6 +122,7 @@ pub enum CUnaryOp {
Not,
Ref,
Deref,
PreInc
}
impl CUnaryOp {
@ -131,6 +132,7 @@ impl CUnaryOp {
CUnaryOp::Not => "!",
CUnaryOp::Ref => "&",
CUnaryOp::Deref => "*",
CUnaryOp::PreInc => "++"
}
}
}