aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-07 16:51:39 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-07 16:51:39 -0200
commitcc01d4624782e28c19b3c75ef7efda4b151dbf03 (patch)
tree63497e23ee54ab0a025f1a0a58e522866cd99ba5 /ltests.h
parent9fa1baf6de64e3e9a3288c21e2da2a10bcd25cd4 (diff)
downloadlua-cc01d4624782e28c19b3c75ef7efda4b151dbf03.tar.gz
lua-cc01d4624782e28c19b3c75ef7efda4b151dbf03.tar.bz2
lua-cc01d4624782e28c19b3c75ef7efda4b151dbf03.zip
new test function 'T.allocount' to restrict number of allocations
before a memory-allocation error
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ltests.h b/ltests.h
index 04aa91b3..25598c0e 100644
--- a/ltests.h
+++ b/ltests.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.h,v 2.52 2017/11/13 12:19:35 roberto Exp roberto $ 2** $Id: ltests.h,v 2.53 2017/11/23 16:35:54 roberto Exp roberto $
3** Internal Header for Debugging of the Lua Implementation 3** Internal Header for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -57,6 +57,7 @@ typedef struct Memcontrol {
57 unsigned long total; 57 unsigned long total;
58 unsigned long maxmem; 58 unsigned long maxmem;
59 unsigned long memlimit; 59 unsigned long memlimit;
60 unsigned long countlimit;
60 unsigned long objcount[LUA_NUMTAGS]; 61 unsigned long objcount[LUA_NUMTAGS];
61} Memcontrol; 62} Memcontrol;
62 63