mirror of
https://github.com/irmen/prog8.git
synced 2024-12-24 01:29:28 +00:00
when zp option = dontuse, print error for any variable with @requirezp
This commit is contained in:
parent
bf71fabe0e
commit
de7ea04f54
@ -640,6 +640,9 @@ internal class AstChecker(private val program: Program,
|
||||
err("string var can only be initialized with a string literal")
|
||||
}
|
||||
|
||||
if(compilerOptions.zeropage==ZeropageType.DONTUSE && decl.zeropage==ZeropageWish.REQUIRE_ZEROPAGE)
|
||||
err("zeropage usage has been disabled by options")
|
||||
|
||||
super.visit(decl)
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,7 @@ TODO
|
||||
|
||||
For next compiler release (7.7)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
- if zp option = dontuse, give error if any variable has @requirezp
|
||||
...
|
||||
|
||||
Need help with
|
||||
^^^^^^^^^^^^^^
|
||||
|
Loading…
Reference in New Issue
Block a user