aboutsummaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-02 17:10:55 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-02 17:10:55 -0300
commitf6834f4393eaa1055c2bbde82ebb33cc58be8371 (patch)
tree3583008ef181106d0fc7e130300f12adc70a5854 /ldo.c
parent78bc8e553d4190fc3b90be5b621fc0f3507586ef (diff)
downloadlua-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldo.c b/ldo.c
index ebf08346..90bb601b 100644
--- a/ldo.c
+++ b/ldo.c
@@ -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
333static void message (lua_State *L, const char *s) { 333static 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);