a null lua_Object is LUA_NOOBJECT, not NULL.

This commit is contained in:
Roberto Ierusalimschy
1995-02-02 18:05:37 -02:00
parent 572ee14b52
commit dd28b830e9
2 changed files with 11 additions and 10 deletions

View File

@@ -3,7 +3,7 @@
** TecCGraf - PUC-Rio
*/
char *rcs_opcode="$Id: opcode.c,v 3.31 1994/12/30 17:45:11 roberto Exp celes $";
char *rcs_opcode="$Id: opcode.c,v 3.32 1995/01/27 17:19:06 celes Exp roberto $";
#include <setjmp.h>
#include <stdio.h>
@@ -373,7 +373,7 @@ static int do_protectedmain (void)
*/
int lua_callfunction (lua_Object function)
{
if (function == NULL)
if (function == LUA_NOOBJECT)
return 1;
else
return do_protectedrun (Address(function), MULT_RET);