aboutsummaryrefslogtreecommitdiff
path: root/lmem.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-05-01 17:48:12 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-05-01 17:48:12 -0300
commit751cd867d3e0338279fa6f3390c8b7ddc0108659 (patch)
tree726f6f3cd49109382b2c0d7ee6a1e0fea740afbd /lmem.h
parentb36b2a061c88be22e36900146cbcad39bab07f5d (diff)
downloadlua-751cd867d3e0338279fa6f3390c8b7ddc0108659.tar.gz
lua-751cd867d3e0338279fa6f3390c8b7ddc0108659.tar.bz2
lua-751cd867d3e0338279fa6f3390c8b7ddc0108659.zip
new way to handle errors
Diffstat (limited to 'lmem.h')
-rw-r--r--lmem.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lmem.h b/lmem.h
index bb0ba5a9..1c896571 100644
--- a/lmem.h
+++ b/lmem.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmem.h,v 1.24 2001/09/07 17:30:16 roberto Exp $ 2** $Id: lmem.h,v 1.25 2001/11/28 20:13:13 roberto Exp roberto $
3** Interface to Memory Manager 3** Interface to Memory Manager
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -13,6 +13,9 @@
13#include "llimits.h" 13#include "llimits.h"
14#include "lua.h" 14#include "lua.h"
15 15
16#define MEMERRMSG "not enough memory"
17
18
16void *luaM_realloc (lua_State *L, void *oldblock, lu_mem oldsize, lu_mem size); 19void *luaM_realloc (lua_State *L, void *oldblock, lu_mem oldsize, lu_mem size);
17 20
18void *luaM_growaux (lua_State *L, void *block, int *size, int size_elem, 21void *luaM_growaux (lua_State *L, void *block, int *size, int size_elem,