summaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ldebug.c b/ldebug.c
index 504dae90..48694847 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.4 1999/12/30 18:28:40 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.5 2000/01/19 12:00:45 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -94,8 +94,7 @@ static const char *luaG_getname (lua_State *L, const char **name, StkId top) {
94 if (ttype(f) == LUA_T_LCLMARK) 94 if (ttype(f) == LUA_T_LCLMARK)
95 f = protovalue(f); 95 f = protovalue(f);
96 LUA_ASSERT(L, ttype(f) == LUA_T_LMARK, "must be a Lua function"); 96 LUA_ASSERT(L, ttype(f) == LUA_T_LMARK, "must be a Lua function");
97 LUA_ASSERT(L, ttype(&tfvalue(f)->consts[i]) == LUA_T_STRING, ""); 97 *name = tfvalue(f)->strcnst[i]->str;
98 *name = tsvalue(&tfvalue(f)->consts[i])->str;
99 return luaO_typename(f+2); 98 return luaO_typename(f+2);
100 } 99 }
101} 100}