Classes | Macros | Typedefs | Functions | Variables
ltests.h File Reference
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for ltests.h:

Go to the source code of this file.

Classes

struct  L_EXTRA
 
struct  Memcontrol
 

Macros

#define getlock(l)   cast(struct L_EXTRA*, lua_getextraspace(l))
 
#define l_sprintf(s, sz, f, i)   (memset(s,0xAB,sz), snprintf(s,sz,f,i))
 
#define LUA_COMPAT_LT_LE
 
#define LUA_COMPAT_MATHLIB
 
#define LUA_DEBUG
 
#define LUA_EXTRASPACE   sizeof(struct L_EXTRA)
 
#define lua_lock(l)   lua_assert((*getlock(l)->plock)++ == 0)
 
#define LUA_RAND32
 
#define lua_unlock(l)   lua_assert(--(*getlock(l)->plock) == 0)
 
#define LUA_USE_JUMPTABLE   0
 
#define LUAI_ASSERT
 
#define LUAI_MAXCSTACK   400
 
#define LUAI_MAXSTACK   50000
 
#define LUAI_USER_ALIGNMENT_T   union { char b[sizeof(void*) * 8]; }
 
#define luai_userstateclose(l)   lua_assert(getlock(l)->lock == 1 && getlock(l)->plock == &(getlock(l)->lock))
 
#define luai_userstatefree(l, l1)   lua_assert(getlock(l)->plock == getlock(l1)->plock)
 
#define luai_userstateopen(l)   (getlock(l)->lock = 0, getlock(l)->plock = &(getlock(l)->lock))
 
#define luai_userstatethread(l, l1)   lua_assert(getlock(l1)->plock == getlock(l)->plock)
 
#define LUAL_BUFFERSIZE   23
 
#define MAXIWTHABS   3
 
#define MINSTRTABSIZE   2
 
#define STRCACHE_M   5
 
#define STRCACHE_N   23
 
#define UNUSED(x)   (x=0, (void)(x))
 

Typedefs

typedef struct Memcontrol Memcontrol
 

Functions

LUA_API void * debug_realloc (void *ud, void *block, size_t osize, size_t nsize)
 
LUAI_FUNC int lua_checkmemory (lua_State *L)
 
LUAI_FUNC void lua_printobj (lua_State *L, struct GCObject *o)
 
LUA_API int luaB_opentests (lua_State *L)
 

Variables

LUA_API Memcontrol l_memcontrol
 
void * l_Trick
 

Macro Definition Documentation

#define getlock (   l)    cast(struct L_EXTRA*, lua_getextraspace(l))

Definition at line 90 of file ltests.h.

#define l_sprintf (   s,
  sz,
  f,
 
)    (memset(s,0xAB,sz), snprintf(s,sz,f,i))

Definition at line 38 of file ltests.h.

#define LUA_COMPAT_LT_LE

Definition at line 16 of file ltests.h.

#define LUA_COMPAT_MATHLIB

Definition at line 15 of file ltests.h.

#define LUA_DEBUG

Definition at line 19 of file ltests.h.

#define LUA_EXTRASPACE   sizeof(struct L_EXTRA)

Definition at line 89 of file ltests.h.

#define lua_lock (   l)    lua_assert((*getlock(l)->plock)++ == 0)

Definition at line 99 of file ltests.h.

#define LUA_RAND32

Definition at line 49 of file ltests.h.

#define lua_unlock (   l)    lua_assert(--(*getlock(l)->plock) == 0)

Definition at line 100 of file ltests.h.

#define LUA_USE_JUMPTABLE   0

Definition at line 45 of file ltests.h.

#define LUAI_ASSERT

Definition at line 23 of file ltests.h.

#define LUAI_MAXCSTACK   400

Definition at line 29 of file ltests.h.

#define LUAI_MAXSTACK   50000

Definition at line 135 of file ltests.h.

#define LUAI_USER_ALIGNMENT_T   union { char b[sizeof(void*) * 8]; }

Definition at line 130 of file ltests.h.

#define luai_userstateclose (   l)    lua_assert(getlock(l)->lock == 1 && getlock(l)->plock == &(getlock(l)->lock))

Definition at line 93 of file ltests.h.

#define luai_userstatefree (   l,
  l1 
)    lua_assert(getlock(l)->plock == getlock(l1)->plock)

Definition at line 97 of file ltests.h.

#define luai_userstateopen (   l)    (getlock(l)->lock = 0, getlock(l)->plock = &(getlock(l)->lock))

Definition at line 91 of file ltests.h.

#define luai_userstatethread (   l,
  l1 
)    lua_assert(getlock(l1)->plock == getlock(l)->plock)

Definition at line 95 of file ltests.h.

#define LUAL_BUFFERSIZE   23

Definition at line 122 of file ltests.h.

#define MAXIWTHABS   3

Definition at line 124 of file ltests.h.

#define MINSTRTABSIZE   2

Definition at line 123 of file ltests.h.

#define STRCACHE_M   5

Definition at line 127 of file ltests.h.

#define STRCACHE_N   23

Definition at line 126 of file ltests.h.

#define UNUSED (   x)    (x=0, (void)(x))

Definition at line 32 of file ltests.h.

Typedef Documentation

typedef struct Memcontrol Memcontrol

Function Documentation

LUA_API void* debug_realloc ( void *  ud,
void *  block,
size_t  osize,
size_t  nsize 
)
LUAI_FUNC int lua_checkmemory ( lua_State L)
LUAI_FUNC void lua_printobj ( lua_State L,
struct GCObject o 
)
LUA_API int luaB_opentests ( lua_State L)

Variable Documentation

LUA_API Memcontrol l_memcontrol

Definition at line 63 of file ltests.h.

void* l_Trick


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:48