aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'LuaSL/src/LuaSL_compile.c')
-rw-r--r--LuaSL/src/LuaSL_compile.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index 65a8089..6d82fb6 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -230,6 +230,17 @@ static LSL_Leaf *findVariable(LuaSL_compiler *compiler, const char *name)
230 return var; 230 return var;
231} 231}
232 232
233LSL_Leaf *checkVariable(LuaSL_compiler *compiler, LSL_Leaf *identifier)
234{
235 gameGlobals *game = compiler->game;
236 LSL_Leaf *var = findVariable(compiler, identifier->value.stringValue);
237
238 if (NULL == var)
239 PE("NOT Found %s!", identifier->value.stringValue);
240
241 return var;
242}
243
233LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right) 244LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right)
234{ 245{
235 gameGlobals *game = compiler->game; 246 gameGlobals *game = compiler->game;