aboutsummaryrefslogtreecommitdiff
path: root/src/ls_kw_impl_GOSUB_RETURN.c
diff options
context:
space:
mode:
authorAlexis Lockwood2021-06-29 19:20:32 -0400
committerAlexis Lockwood2021-06-29 19:20:32 -0400
commit28c925db09ef5f2007854d929db5530e47e769fd (patch)
tree5182931e98a320345b7f2403f9adbc5389ba718c /src/ls_kw_impl_GOSUB_RETURN.c
parent45160a54da8ff82a89dd44eabcd9c90d8b8d96a0 (diff)
OPER should be namespaced too
Diffstat (limited to 'src/ls_kw_impl_GOSUB_RETURN.c')
-rw-r--r--src/ls_kw_impl_GOSUB_RETURN.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ls_kw_impl_GOSUB_RETURN.c b/src/ls_kw_impl_GOSUB_RETURN.c
index 8e8d850..2561be4 100644
--- a/src/ls_kw_impl_GOSUB_RETURN.c
+++ b/src/ls_kw_impl_GOSUB_RETURN.c
@@ -52,7 +52,7 @@ void ls_kw_fun_GOSUB(ls_t * self)
self->_callstack->body.sctx_call.pc = self->_pc;
ls_lex(self, &tok);
- if (tok.ty == LS_TOK_OPERATOR && tok.body.oper_val == OPER_LPAREN)
+ if (tok.ty == LS_TOK_OPERATOR && tok.body.oper_val == LS_OP_LPAREN)
{
for (;;)
{
@@ -66,7 +66,7 @@ void ls_kw_fun_GOSUB(ls_t * self)
ls_lex(self, &tok);
if (!(tok.ty == LS_TOK_OPERATOR &&
- tok.body.oper_val == OPER_EQ))
+ tok.body.oper_val == LS_OP_EQ))
ls_throw_err(self, LS_SYNTAX_ERROR);
ls_value_t val;
@@ -78,7 +78,7 @@ void ls_kw_fun_GOSUB(ls_t * self)
else if (tok.ty == LS_TOK_COMMA)
continue;
else if (tok.ty == LS_TOK_OPERATOR
- && tok.body.oper_val == OPER_RPAREN)
+ && tok.body.oper_val == LS_OP_RPAREN)
break;
else
ls_throw_err(self, LS_SYNTAX_ERROR);