diff options
Diffstat (limited to 'ldo.c')
| -rw-r--r-- | ldo.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldo.c,v 1.98 2000/09/29 12:42:13 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.99 2000/10/02 14:47:43 roberto Exp roberto $ |
| 3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -332,7 +332,7 @@ struct lua_longjmp { | |||
| 332 | 332 | ||
| 333 | static void message (lua_State *L, const char *s) { | 333 | static void message (lua_State *L, const char *s) { |
| 334 | const TObject *em = luaH_getglobal(L, LUA_ERRORMESSAGE); | 334 | const TObject *em = luaH_getglobal(L, LUA_ERRORMESSAGE); |
| 335 | if (*luaO_typename(em) == 'f') { | 335 | if (luaO_type(em) == LUA_TFUNCTION) { |
| 336 | *L->top = *em; | 336 | *L->top = *em; |
| 337 | incr_top; | 337 | incr_top; |
| 338 | lua_pushstring(L, s); | 338 | lua_pushstring(L, s); |
