diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-01-15 09:36:28 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-01-15 09:36:28 -0200 |
commit | dea400bc1d2854ac26c13f1866c226d9a54ea23f (patch) | |
tree | 40c94ca78868730bb12cb4767b239af62186fe13 /ldblib.c | |
parent | fb663f768d6d19bdbf6c2ef800657a027a126c24 (diff) | |
download | lua-github-dea400bc1d2854ac26c13f1866c226d9a54ea23f.tar.gz |
"getstack" returns func, too.
Diffstat (limited to 'ldblib.c')
-rw-r--r-- | ldblib.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* -** $Id: ldblib.c,v 1.1 1999/01/08 16:47:44 roberto Exp roberto $ +** $Id: ldblib.c,v 1.2 1999/01/11 18:57:35 roberto Exp roberto $ ** Interface from Lua to its debug API ** See Copyright Notice in lua.h */ @@ -68,6 +68,10 @@ static void getstack (void) { if (currline > 0) settabsi(result, "current", currline); lua_pushobject(result); + lua_pushstring("func"); + lua_pushobject(func); + lua_settable(); /* result.func = func */ + lua_pushobject(result); } } |