Fix copyvar with non-var argument
This commit is contained in:
committed by
Philipp AUER
parent
fdcaac9175
commit
1a9fbbcfba
@@ -169,7 +169,10 @@
|
||||
.endm
|
||||
|
||||
@ Copies the value of source into destination.
|
||||
.macro copyvar destination:req, source:req
|
||||
.macro copyvar destination:req, source:req, warn=TRUE
|
||||
.if \warn && !((\source >= VARS_START && \source <= VARS_END) || (\source >= SPECIAL_VARS_START && \source <= SPECIAL_VARS_END))
|
||||
.warning "copyvar with a value that is not a VAR_ constant; did you mean setvar instead?"
|
||||
.endif
|
||||
.byte SCR_OP_COPYVAR
|
||||
.2byte \destination
|
||||
.2byte \source
|
||||
|
||||
Reference in New Issue
Block a user