aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2012-05-08 10:53:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2012-05-08 10:53:33 -0300
commit3cadc37f470df50deb5c920b028125b8bb6c316b (patch)
treea2a448ef80bddb0ddef2581d0692ccec3de5b159 /ltests.c
parentbb1146dc3986c6f123ed6d85a26694ca8d56f94a (diff)
downloadlua-3cadc37f470df50deb5c920b028125b8bb6c316b.tar.gz
lua-3cadc37f470df50deb5c920b028125b8bb6c316b.tar.bz2
lua-3cadc37f470df50deb5c920b028125b8bb6c316b.zip
no more 'Proto' objects on the stack. Protos are anchored on outer
Protos or on a Closure, which must be created before the Proto.
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltests.c b/ltests.c
index 4b65942b..656e4b6a 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.125 2012/01/20 22:05:50 roberto Exp roberto $ 2** $Id: ltests.c,v 2.126 2012/01/25 21:05:40 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -278,8 +278,7 @@ static void checkCclosure (global_State *g, CClosure *cl) {
278static void checkLclosure (global_State *g, LClosure *cl) { 278static void checkLclosure (global_State *g, LClosure *cl) {
279 GCObject *clgc = obj2gco(cl); 279 GCObject *clgc = obj2gco(cl);
280 int i; 280 int i;
281 lua_assert(cl->nupvalues == cl->p->sizeupvalues); 281 if (cl->p) checkobjref(g, clgc, cl->p);
282 checkobjref(g, clgc, cl->p);
283 for (i=0; i<cl->nupvalues; i++) { 282 for (i=0; i<cl->nupvalues; i++) {
284 if (cl->upvals[i]) { 283 if (cl->upvals[i]) {
285 lua_assert(cl->upvals[i]->tt == LUA_TUPVAL); 284 lua_assert(cl->upvals[i]->tt == LUA_TUPVAL);
@@ -855,6 +854,7 @@ static int loadlib (lua_State *L) {
855 {"coroutine", luaopen_coroutine}, 854 {"coroutine", luaopen_coroutine},
856 {"debug", luaopen_debug}, 855 {"debug", luaopen_debug},
857 {"io", luaopen_io}, 856 {"io", luaopen_io},
857 {"os", luaopen_os},
858 {"math", luaopen_math}, 858 {"math", luaopen_math},
859 {"string", luaopen_string}, 859 {"string", luaopen_string},
860 {"table", luaopen_table}, 860 {"table", luaopen_table},