aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index 3306c780..04e7d419 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 1.19 1999/12/01 19:50:08 roberto Exp roberto $ 2** $Id: lstate.c,v 1.20 1999/12/06 11:41:28 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -99,6 +99,7 @@ void lua_close (lua_State *L) {
99 luaM_free(L, L->refArray); 99 luaM_free(L, L->refArray);
100 luaM_free(L, L->Mbuffer); 100 luaM_free(L, L->Mbuffer);
101 luaM_free(L, L->Cblocks); 101 luaM_free(L, L->Cblocks);
102 LUA_ASSERT(L, L->numCblocks == 0, "Cblocks still open");
102 LUA_ASSERT(L, L->nblocks == 0, "wrong count for nblocks"); 103 LUA_ASSERT(L, L->nblocks == 0, "wrong count for nblocks");
103 LUA_ASSERT(L, L != lua_state || L->Cstack.lua2C == L->stack, "bad stack"); 104 LUA_ASSERT(L, L != lua_state || L->Cstack.lua2C == L->stack, "bad stack");
104 LUA_ASSERT(L, L != lua_state || L->Cstack.base == L->stack, "bad stack"); 105 LUA_ASSERT(L, L != lua_state || L->Cstack.base == L->stack, "bad stack");