1
0
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:
Karol Stasiak 2020-05-01 15:18:48 +02:00
parent 3e33660c2e
commit 655edc35ff

View File

@ -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
}