summaryrefslogtreecommitdiff
path: root/ldblib.c
diff options
context:
space:
mode:
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 1859346e..ecb69c76 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldblib.c,v 1.11 2000/03/03 14:58:26 roberto Exp roberto $ 2** $Id: ldblib.c,v 1.12 2000/03/30 17:19:48 roberto Exp roberto $
3** Interface from Lua to its debug API 3** Interface from Lua to its debug API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -88,6 +88,7 @@ static void getlocal (lua_State *L) {
88 lua_pushstring(L, lvar.name); 88 lua_pushstring(L, lvar.name);
89 lua_pushobject(L, lvar.value); 89 lua_pushobject(L, lvar.value);
90 } 90 }
91 else lua_pushnil(L);
91} 92}
92 93
93 94
@@ -100,6 +101,7 @@ static void setlocal (lua_State *L) {
100 lvar.value = luaL_nonnullarg(L, 3); 101 lvar.value = luaL_nonnullarg(L, 3);
101 if (lua_setlocal(L, &ar, &lvar)) 102 if (lua_setlocal(L, &ar, &lvar))
102 lua_pushstring(L, lvar.name); 103 lua_pushstring(L, lvar.name);
104 else lua_pushnil(L);
103} 105}
104 106
105 107