mirror of
https://github.com/KarolS/millfork.git
synced 2024-06-12 06:29:34 +00:00
Allow sizeof in assembly
This commit is contained in:
parent
3e33660c2e
commit
655edc35ff
|
@ -992,6 +992,8 @@ class Environment(val parent: Option[Environment], val prefix: String, val cpuFa
|
|||
case "nonet" | "sin" | "cos" | "tan" =>
|
||||
log.error("Function not supported in inline assembly", e.position)
|
||||
None
|
||||
case "sizeof" =>
|
||||
Some(evalSizeof(params.head))
|
||||
case _ =>
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user