diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-02 17:10:55 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-02 17:10:55 -0300 |
commit | f6834f4393eaa1055c2bbde82ebb33cc58be8371 (patch) | |
tree | 3583008ef181106d0fc7e130300f12adc70a5854 /ldo.c | |
parent | 78bc8e553d4190fc3b90be5b621fc0f3507586ef (diff) | |
download | lua-f6834f4393eaa1055c2bbde82ebb33cc58be8371.tar.gz lua-f6834f4393eaa1055c2bbde82ebb33cc58be8371.tar.bz2 lua-f6834f4393eaa1055c2bbde82ebb33cc58be8371.zip |
new API function `lua_type' + new type lua_Type
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); |