diff options
author | David Walter Seikel | 2012-01-21 18:49:18 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-21 18:49:18 +1000 |
commit | ab7fc23d648e15a71206f6f71e33168d1f684bb2 (patch) | |
tree | e5195e66b65b865da125e017ae70ec5b2bcd8d5d /LuaSL/src/LuaSL_compile.c | |
parent | A comment about function declarations. (diff) | |
download | SledjHamr-ab7fc23d648e15a71206f6f71e33168d1f684bb2.zip SledjHamr-ab7fc23d648e15a71206f6f71e33168d1f684bb2.tar.gz SledjHamr-ab7fc23d648e15a71206f6f71e33168d1f684bb2.tar.bz2 SledjHamr-ab7fc23d648e15a71206f6f71e33168d1f684bb2.tar.xz |
Standardise error messages.
Diffstat (limited to '')
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 0148444..06c55ef 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c | |||
@@ -313,7 +313,7 @@ LSL_Leaf *checkVariable(LuaSL_compiler *compiler, LSL_Leaf *identifier) | |||
313 | LSL_Leaf *var = findVariable(compiler, identifier->value.stringValue); | 313 | LSL_Leaf *var = findVariable(compiler, identifier->value.stringValue); |
314 | 314 | ||
315 | if (NULL == var) | 315 | if (NULL == var) |
316 | PE("NOT found %s @ line %d column %d!", identifier->value.stringValue, identifier->line, identifier->column); | 316 | PE("NOT found %s @ line %d, column %d!", identifier->value.stringValue, identifier->line, identifier->column); |
317 | #ifdef LUASL_DEBUG | 317 | #ifdef LUASL_DEBUG |
318 | else | 318 | else |
319 | PI("Found %s!", identifier->value.stringValue); | 319 | PI("Found %s!", identifier->value.stringValue); |
@@ -428,7 +428,7 @@ LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, | |||
428 | rightType = allowed[right->basicType].name; | 428 | rightType = allowed[right->basicType].name; |
429 | } | 429 | } |
430 | 430 | ||
431 | PE("Invalid operation [%s(%s) %s %s(%s)] @ line %d column %d", leftType, leftToken, lval->token->token, rightType, rightToken, lval->line, lval->column); | 431 | PE("Invalid operation [%s(%s) %s %s(%s)] @ line %d, column %d!", leftType, leftToken, lval->token->token, rightType, rightToken, lval->line, lval->column); |
432 | } | 432 | } |
433 | } | 433 | } |
434 | 434 | ||