From 751cd867d3e0338279fa6f3390c8b7ddc0108659 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 1 May 2002 17:48:12 -0300 Subject: new way to handle errors --- lmem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lmem.c') diff --git a/lmem.c b/lmem.c index 435cceef..f3d4d309 100644 --- a/lmem.c +++ b/lmem.c @@ -1,5 +1,5 @@ /* -** $Id: lmem.c,v 1.52 2001/11/28 20:13:13 roberto Exp roberto $ +** $Id: lmem.c,v 1.53 2002/04/22 14:40:23 roberto Exp roberto $ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ @@ -58,7 +58,7 @@ void *luaM_realloc (lua_State *L, void *block, lu_mem oldsize, lu_mem size) { block = l_realloc(block, oldsize, size); if (block == NULL) { if (L) - luaD_error(L, NULL, LUA_ERRMEM); /* break run without error message */ + luaD_error(L, MEMERRMSG, LUA_ERRMEM); else return NULL; /* error before creating state! */ } } -- cgit v1.2.3-55-g6feb