summaryrefslogtreecommitdiff
path: root/opcode.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-02-02 18:05:37 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-02-02 18:05:37 -0200
commitdd28b830e9a4104fe78094fc6baf15cf601c1b6b (patch)
tree6d0a22fa6a1dd101b57aa6e4c3cf7a5bd89b7315 /opcode.c
parent572ee14b523a666d2be896825f55e6d05a260f7b (diff)
downloadlua-dd28b830e9a4104fe78094fc6baf15cf601c1b6b.tar.gz
lua-dd28b830e9a4104fe78094fc6baf15cf601c1b6b.tar.bz2
lua-dd28b830e9a4104fe78094fc6baf15cf601c1b6b.zip
a null lua_Object is LUA_NOOBJECT, not NULL.
Diffstat (limited to 'opcode.c')
-rw-r--r--opcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcode.c b/opcode.c
index 4f488bb0..39cc3651 100644
--- a/opcode.c
+++ b/opcode.c
@@ -3,7 +3,7 @@
3** TecCGraf - PUC-Rio 3** TecCGraf - PUC-Rio
4*/ 4*/
5 5
6char *rcs_opcode="$Id: opcode.c,v 3.31 1994/12/30 17:45:11 roberto Exp celes $"; 6char *rcs_opcode="$Id: opcode.c,v 3.32 1995/01/27 17:19:06 celes Exp roberto $";
7 7
8#include <setjmp.h> 8#include <setjmp.h>
9#include <stdio.h> 9#include <stdio.h>
@@ -373,7 +373,7 @@ static int do_protectedmain (void)
373*/ 373*/
374int lua_callfunction (lua_Object function) 374int lua_callfunction (lua_Object function)
375{ 375{
376 if (function == NULL) 376 if (function == LUA_NOOBJECT)
377 return 1; 377 return 1;
378 else 378 else
379 return do_protectedrun (Address(function), MULT_RET); 379 return do_protectedrun (Address(function), MULT_RET);