aboutsummaryrefslogtreecommitdiff
path: root/ldblib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-03 11:58:26 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-03 11:58:26 -0300
commit3c9d999424520c809e05bee11d81788b488434f6 (patch)
tree7556d9ea10bda42b226aec4dd956753467cc0864 /ldblib.c
parentf7840a3e0bc07813246b2bad6bf4579848187908 (diff)
downloadlua-3c9d999424520c809e05bee11d81788b488434f6.tar.gz
lua-3c9d999424520c809e05bee11d81788b488434f6.tar.bz2
lua-3c9d999424520c809e05bee11d81788b488434f6.zip
many details (most by lhf).
Diffstat (limited to 'ldblib.c')
-rw-r--r--ldblib.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ldblib.c b/ldblib.c
index 3634d213..ce6cfa2a 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldblib.c,v 1.9 1999/12/21 18:04:41 roberto Exp roberto $ 2** $Id: ldblib.c,v 1.10 2000/01/19 12:00:45 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*/
@@ -50,7 +50,7 @@ static void getstack (lua_State *L) {
50 lua_Object res = lua_createtable(L); 50 lua_Object res = lua_createtable(L);
51 if (!lua_getinfo(L, options, &ar)) 51 if (!lua_getinfo(L, options, &ar))
52 luaL_argerror(L, 2, "invalid option"); 52 luaL_argerror(L, 2, "invalid option");
53 for ( ;*options; options++) { 53 for (; *options; options++) {
54 switch (*options) { 54 switch (*options) {
55 case 'S': 55 case 'S':
56 settabss(L, res, "source", ar.source); 56 settabss(L, res, "source", ar.source);
@@ -103,6 +103,10 @@ static void setlocal (lua_State *L) {
103} 103}
104 104
105 105
106/*
107** because of these variables, this module is not reentrant, and should
108** not be used in multiple states
109*/
106 110
107static int linehook = LUA_NOREF; /* Lua reference to line hook function */ 111static int linehook = LUA_NOREF; /* Lua reference to line hook function */
108static int callhook = LUA_NOREF; /* Lua reference to call hook function */ 112static int callhook = LUA_NOREF; /* Lua reference to call hook function */