mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
a null lua_Object is LUA_NOOBJECT, not NULL.
This commit is contained in:
parent
572ee14b52
commit
dd28b830e9
2 changed files with 11 additions and 10 deletions
4
opcode.c
4
opcode.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue