summaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-01-13 14:30:47 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-01-13 14:30:47 -0200
commiteab57ed6fddcc70891f017d7a1c4a51b3d3c2018 (patch)
tree28d0f2fe3c813c0a3f8c60a3e162b0d4dcb3b8b1 /lstate.c
parentea45f3eb284e86354f19536b22a49b61f1800cc3 (diff)
downloadlua-eab57ed6fddcc70891f017d7a1c4a51b3d3c2018.tar.gz
lua-eab57ed6fddcc70891f017d7a1c4a51b3d3c2018.tar.bz2
lua-eab57ed6fddcc70891f017d7a1c4a51b3d3c2018.zip
details
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstate.c b/lstate.c
index e82ca950..563ec35e 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 1.22 1999/12/07 11:42:54 roberto Exp roberto $ 2** $Id: lstate.c,v 1.23 1999/12/21 18:04:41 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*/
@@ -105,8 +105,8 @@ void lua_close (lua_State *L) {
105 LUA_ASSERT(L, L->Cstack.base == L->top, "C2Lua not empty"); 105 LUA_ASSERT(L, L->Cstack.base == L->top, "C2Lua not empty");
106 luaM_free(L, L); 106 luaM_free(L, L);
107 if (L == lua_state) { 107 if (L == lua_state) {
108 LUA_ASSERT(L, numblocks == 0, "memory leak!"); 108 LUA_ASSERT(L, memdebug_numblocks == 0, "memory leak!");
109 LUA_ASSERT(L, totalmem == 0,"memory leak!"); 109 LUA_ASSERT(L, memdebug_total == 0,"memory leak!");
110 lua_state = NULL; 110 lua_state = NULL;
111 } 111 }
112} 112}