diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-02-02 18:05:37 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-02-02 18:05:37 -0200 |
| commit | dd28b830e9a4104fe78094fc6baf15cf601c1b6b (patch) | |
| tree | 6d0a22fa6a1dd101b57aa6e4c3cf7a5bd89b7315 /opcode.c | |
| parent | 572ee14b523a666d2be896825f55e6d05a260f7b (diff) | |
| download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** TecCGraf - PUC-Rio | 3 | ** TecCGraf - PUC-Rio |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_opcode="$Id: opcode.c,v 3.31 1994/12/30 17:45:11 roberto Exp celes $"; | 6 | char *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 | */ |
| 374 | int lua_callfunction (lua_Object function) | 374 | int 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); |
