due to internal complexity, only pointers to bytes can be made const

This commit is contained in:
Irmen de Jong committed 2026-05-09 22:45:44 +02:00
1 parent 7095b14bcb
commit 6d1dfd2a09
11 files changed
+132 -326

No files matched your search

@@ -71,9 +71,9 @@ internal class BuiltinFuncGen(private val codeGen: IRCodeGen, private val exprGe
"popw" -> funcPopW()
"popl" -> funcPopL()
"popf" -> funcPopF()
"sizeof" -> throw AssemblyError("sizeof must have been replaced with a constant")
"offsetof" -> throw AssemblyError("offsetof must have been replaced with a constant")
else -> throw AssemblyError("missing builtinfunc for ${call.name}")
"sizeof" -> throw AssemblyError("sizeof must have been replaced with a constant ${call.position}")
"offsetof" -> throw AssemblyError("offsetof must have been replaced with a constant ${call.position}")
else -> throw AssemblyError("missing builtinfunc for ${call.name} ${call.position}")
}
}