aboutsummaryrefslogtreecommitdiff
path: root/lmem.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-08 14:16:46 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-08 14:16:46 -0300
commit055104f5b6a0264974c5d9f2a55499420a1c9c2a (patch)
tree0326d843489810878c8e5c80c4c9f6a29261fbce /lmem.h
parent28aa733c15e814eb5708c58063ea1fb636ec7876 (diff)
downloadlua-055104f5b6a0264974c5d9f2a55499420a1c9c2a.tar.gz
lua-055104f5b6a0264974c5d9f2a55499420a1c9c2a.tar.bz2
lua-055104f5b6a0264974c5d9f2a55499420a1c9c2a.zip
keep memory-error message in the global state, so that its use
does not depend on Lua internalizing strings to avoid a string creation on memory errors
Diffstat (limited to 'lmem.h')
-rw-r--r--lmem.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lmem.h b/lmem.h
index 74f236cd..710a4904 100644
--- a/lmem.h
+++ b/lmem.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmem.h,v 1.34 2009/04/17 14:40:13 roberto Exp roberto $ 2** $Id: lmem.h,v 1.35 2009/12/16 16:42:58 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,8 +13,6 @@
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 16
19#define luaM_reallocv(L,b,on,n,e) \ 17#define luaM_reallocv(L,b,on,n,e) \
20 ((cast(size_t, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \ 18 ((cast(size_t, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \