diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-04-08 14:16:46 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-04-08 14:16:46 -0300 |
commit | 055104f5b6a0264974c5d9f2a55499420a1c9c2a (patch) | |
tree | 0326d843489810878c8e5c80c4c9f6a29261fbce /lmem.h | |
parent | 28aa733c15e814eb5708c58063ea1fb636ec7876 (diff) | |
download | lua-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.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 */ \ |