|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
** $Id: ltests.h,v 2.47 2014/12/26 14:44:44 roberto Exp $
|
|
|
|
|
** $Id: ltests.h,v 2.49 2015/09/22 14:18:24 roberto Exp $
|
|
|
|
|
** Internal Header for Debugging of the Lua Implementation
|
|
|
|
|
** See Copyright Notice in lua.h
|
|
|
|
|
*/
|
|
|
|
@ -43,6 +43,15 @@
|
|
|
|
|
#define UNUSED(x) (x=0, (void)(x))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* test for sizes in 'l_sprintf' (make sure whole buffer is available) */
|
|
|
|
|
#undef l_sprintf
|
|
|
|
|
#if !defined(LUA_USE_C89)
|
|
|
|
|
#define l_sprintf(s,sz,f,i) (memset(s,0xAB,sz), snprintf(s,sz,f,i))
|
|
|
|
|
#else
|
|
|
|
|
#define l_sprintf(s,sz,f,i) (memset(s,0xAB,sz), sprintf(s,f,i))
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* memory-allocator control variables */
|
|
|
|
|
typedef struct Memcontrol {
|
|
|
|
|
unsigned long numblocks;
|
|
|
|
|