From cfba57207660fd27ddac9ea51cdeb263c2d6b418 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 30 Jun 2000 11:35:17 -0300 Subject: remove dummy argument in LUA_ASSERT --- lstate.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index 24df5d4b..b91daf5b 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 1.26 2000/05/08 19:32:53 roberto Exp roberto $ +** $Id: lstate.c,v 1.27 2000/06/12 13:52:05 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -88,22 +88,22 @@ lua_State *lua_newstate (const char *s, ...) { void lua_close (lua_State *L) { luaC_collect(L, 1); /* collect all elements */ - LUA_ASSERT(L, L->rootproto == NULL, "list should be empty"); - LUA_ASSERT(L, L->rootcl == NULL, "list should be empty"); - LUA_ASSERT(L, L->roottable == NULL, "list should be empty"); + LUA_ASSERT(L->rootproto == NULL, "list should be empty"); + LUA_ASSERT(L->rootcl == NULL, "list should be empty"); + LUA_ASSERT(L->roottable == NULL, "list should be empty"); luaS_freeall(L); luaM_free(L, L->stack); luaM_free(L, L->IMtable); luaM_free(L, L->refArray); luaM_free(L, L->Mbuffer); luaM_free(L, L->Cblocks); - LUA_ASSERT(L, L->numCblocks == 0, "Cblocks still open"); - LUA_ASSERT(L, L->nblocks == 0, "wrong count for nblocks"); - LUA_ASSERT(L, L->Cstack.base == L->top, "C2Lua not empty"); + LUA_ASSERT(L->numCblocks == 0, "Cblocks still open"); + LUA_ASSERT(L->nblocks == 0, "wrong count for nblocks"); + LUA_ASSERT(L->Cstack.base == L->top, "C2Lua not empty"); luaM_free(L, L); if (L == lua_state) { - LUA_ASSERT(L, memdebug_numblocks == 0, "memory leak!"); - LUA_ASSERT(L, memdebug_total == 0,"memory leak!"); + LUA_ASSERT(memdebug_numblocks == 0, "memory leak!"); + LUA_ASSERT(memdebug_total == 0,"memory leak!"); lua_state = NULL; } } -- cgit v1.2.3-55-g6feb