diff options
-rw-r--r-- | ldblib.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldblib.c,v 1.110 2009/02/17 13:21:28 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.111 2009/08/04 18:27:57 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 | */ |
@@ -180,7 +180,6 @@ static int auxupvalue (lua_State *L, int get) { | |||
180 | const char *name; | 180 | const char *name; |
181 | int n = luaL_checkint(L, 2); | 181 | int n = luaL_checkint(L, 2); |
182 | luaL_checktype(L, 1, LUA_TFUNCTION); | 182 | luaL_checktype(L, 1, LUA_TFUNCTION); |
183 | if (lua_iscfunction(L, 1)) return 0; /* cannot touch C upvalues from Lua */ | ||
184 | name = get ? lua_getupvalue(L, 1, n) : lua_setupvalue(L, 1, n); | 183 | name = get ? lua_getupvalue(L, 1, n) : lua_setupvalue(L, 1, n); |
185 | if (name == NULL) return 0; | 184 | if (name == NULL) return 0; |
186 | lua_pushstring(L, name); | 185 | lua_pushstring(L, name); |