mirror of
https://github.com/irmen/prog8.git
synced 2025-11-01 06:16:15 +00:00
boolean variables can now also be memory-mapped (including boolean arrays)
This commit is contained in:
@@ -238,7 +238,7 @@ class StMemVar(name: String,
|
||||
StNode(name, StNodeType.MEMVAR, astNode) {
|
||||
|
||||
init{
|
||||
require(!dt.isBool && !dt.isBoolArray)
|
||||
require(!dt.isString)
|
||||
if(dt.isStringly && !dt.isWord)
|
||||
requireNotNull(length)
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ class PtConstant(name: String, override val type: DataType, val value: Double, p
|
||||
|
||||
class PtMemMapped(name: String, override val type: DataType, val address: UInt, val arraySize: UInt?, position: Position) : PtNamedNode(name, position), IPtVariable {
|
||||
init {
|
||||
require(!type.isBool && !type.isBoolArray)
|
||||
require(!type.isString)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user