added 'pointer' as type alias for uword or long depending on the compilation target's pointer size

This commit is contained in:
Irmen de Jong committed 2026-07-11 16:59:24 +02:00
1 parent 67e6888009
commit 0e978b250b
29 files changed
+393 -334

No files matched your search

@@ -32,7 +32,7 @@ internal class NormalMemSizer(val floatsize: Int, val pointerSize: Int = 2): IMe
dt.isLong -> 4 * (numElements ?: 1)
dt.isWord -> 2 * (numElements ?: 1)
dt.isPointer -> pointerSize * (numElements ?: 1)
dt.isStructInstance -> dt.subType!!.memsize(this)
dt.isStructInstance -> dt.subType?.memsize(this) ?: 0
dt.isUndefined -> throw IllegalArgumentException("undefined has no memory size")
else -> throw IllegalArgumentException("invalid dt $dt")
}