aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-27 09:39:52 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-27 09:39:52 -0200
commite2b6b7de1b51ac662ad76423e045d0cf3274f051 (patch)
treee91912fe805b353f266413a9b79062f757cc9631 /ldebug.c
parent563b1f570400828dafa76bfae4a3b0b1eb9721a7 (diff)
downloadlua-e2b6b7de1b51ac662ad76423e045d0cf3274f051.tar.gz
lua-e2b6b7de1b51ac662ad76423e045d0cf3274f051.tar.bz2
lua-e2b6b7de1b51ac662ad76423e045d0cf3274f051.zip
details
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index fa38f132..744263a6 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.47 2000/10/09 13:47:32 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.48 2000/10/20 16:39:03 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*/
@@ -169,7 +169,7 @@ LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar,
169 L->top--; /* pop new value */ 169 L->top--; /* pop new value */
170 if (!fp) return NULL; /* `f' is not a Lua function? */ 170 if (!fp) return NULL; /* `f' is not a Lua function? */
171 name = luaF_getlocalname(fp, localnum, currentpc(f)); 171 name = luaF_getlocalname(fp, localnum, currentpc(f));
172 if (!name || name[0] == '*') return NULL; /* `*' starts private locals */ 172 if (!name || name[0] == '(') return NULL; /* `(' starts private locals */
173 *((f+1)+(localnum-1)) = *L->top; 173 *((f+1)+(localnum-1)) = *L->top;
174 return name; 174 return name;
175} 175}