summaryrefslogtreecommitdiff
path: root/ldblib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-12 15:38:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-12 15:38:25 -0300
commit01ce1ce48c20bbb97d04460ebe97de3a7751678e (patch)
treeea180cf4e9de5ab8096d8e338efe93f77dda7b36 /ldblib.c
parent024ed4218f923194c97bf1c8fccba4f598296ccb (diff)
downloadlua-github-01ce1ce48c20bbb97d04460ebe97de3a7751678e.tar.gz
field short_src
Diffstat (limited to 'ldblib.c')
-rw-r--r--ldblib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ldblib.c b/ldblib.c
index 2d8c555f..761b37ea 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -1,5 +1,5 @@
/*
-** $Id: ldblib.c,v 1.19 2000/08/28 17:57:04 roberto Exp roberto $
+** $Id: ldblib.c,v 1.20 2000/09/05 19:33:32 roberto Exp roberto $
** Interface from Lua to its debug API
** See Copyright Notice in lua.h
*/
@@ -55,6 +55,8 @@ static int getinfo (lua_State *L) {
switch (*options) {
case 'S':
settabss(L, "source", ar.source);
+ if (ar.source)
+ settabss(L, "short_src", ar.short_src);
settabsi(L, "linedefined", ar.linedefined);
settabss(L, "what", ar.what);
break;