diff options
Diffstat (limited to 'fallback.c')
-rw-r--r-- | fallback.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_fallback="$Id: fallback.c,v 1.20 1996/02/22 20:34:33 roberto Exp roberto $"; | 6 | char *rcs_fallback="$Id: fallback.c,v 1.21 1996/03/04 13:29:10 roberto Exp roberto $"; |
7 | 7 | ||
8 | #include <stdio.h> | 8 | #include <stdio.h> |
9 | #include <string.h> | 9 | #include <string.h> |
@@ -49,7 +49,7 @@ void luaI_setfallback (void) | |||
49 | int i; | 49 | int i; |
50 | char *name = lua_getstring(lua_getparam(1)); | 50 | char *name = lua_getstring(lua_getparam(1)); |
51 | lua_Object func = lua_getparam(2); | 51 | lua_Object func = lua_getparam(2); |
52 | if (name == NULL || !(lua_isfunction(func) || lua_iscfunction(func))) | 52 | if (name == NULL || !lua_isfunction(func)) |
53 | lua_error("incorrect argument to function `setfallback'"); | 53 | lua_error("incorrect argument to function `setfallback'"); |
54 | for (i=0; i<N_FB; i++) | 54 | for (i=0; i<N_FB; i++) |
55 | { | 55 | { |