mirror of
https://github.com/irmen/prog8.git
synced 2025-01-17 22:32:39 +00:00
f8aaa2d13c
avoids weird type inconsistency for boolean parameters that would get aliased as unsigned byte instead invisibly
18 lines
240 B
Lua
18 lines
240 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
%option no_sysinit
|
|
|
|
main {
|
|
sub func(bool flag @R1) {
|
|
if flag
|
|
return
|
|
}
|
|
|
|
extsub $2000 = extok(bool flag @R0)
|
|
|
|
sub start() {
|
|
func(true)
|
|
extok(true)
|
|
}
|
|
}
|