Lua never uses Ã'assert' (it is always 'lua_assert')

This commit is contained in:
Roberto Ierusalimschy 2012-01-23 20:59:02 -02:00
parent 0010ec68b1
commit fb6eee2805
1 changed files with 2 additions and 2 deletions

4
lgc.c
View File

@ -1,5 +1,5 @@
/*
** $Id: lgc.c,v 2.116 2011/12/02 13:18:41 roberto Exp roberto $
** $Id: lgc.c,v 2.117 2012/01/20 22:05:50 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@ -485,7 +485,7 @@ static int traverseCclosure (global_State *g, CClosure *cl) {
static int traverseLclosure (global_State *g, LClosure *cl) {
int i;
assert(cl->nupvalues == cl->p->sizeupvalues);
lua_assert(cl->nupvalues == cl->p->sizeupvalues);
markobject(g, cl->p); /* mark its prototype */
for (i = 0; i < cl->nupvalues; i++) /* mark its upvalues */
markobject(g, cl->upvals[i]);