From cc01d4624782e28c19b3c75ef7efda4b151dbf03 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 7 Dec 2017 16:51:39 -0200 Subject: new test function 'T.allocount' to restrict number of allocations before a memory-allocation error --- ltests.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ltests.h') diff --git a/ltests.h b/ltests.h index 04aa91b3..25598c0e 100644 --- a/ltests.h +++ b/ltests.h @@ -1,5 +1,5 @@ /* -** $Id: ltests.h,v 2.52 2017/11/13 12:19:35 roberto Exp roberto $ +** $Id: ltests.h,v 2.53 2017/11/23 16:35:54 roberto Exp roberto $ ** Internal Header for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -57,6 +57,7 @@ typedef struct Memcontrol { unsigned long total; unsigned long maxmem; unsigned long memlimit; + unsigned long countlimit; unsigned long objcount[LUA_NUMTAGS]; } Memcontrol; -- cgit v1.2.3-55-g6feb