sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
ltests.h File Reference
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Classes

struct  Memcontrol
struct  L_EXTRA

Macros

#define LUA_COMPAT_MATHLIB
#define LUA_COMPAT_LT_LE
#define LUA_DEBUG
#define LUAI_ASSERT
#define UNUSED(x)
#define l_sprintf(s, sz, f, i)
#define LUA_USE_JUMPTABLE   0
#define LUA_RAND32
#define LUA_EXTRASPACE   sizeof(struct L_EXTRA)
#define getlock(l)
#define luai_userstateopen(l)
#define luai_userstateclose(l)
#define luai_userstatethread(l, l1)
#define luai_userstatefree(l, l1)
#define lua_lock(l)
#define lua_unlock(l)
#define LUAL_BUFFERSIZE   23
#define MINSTRTABSIZE   2
#define MAXIWTHABS   3
#define STRCACHE_N   23
#define STRCACHE_M   5
#define LUAI_USER_ALIGNMENT_T   union { char b[sizeof(void*) * 8]; }
#define LUAI_MAXSTACK   50000
#define LUAI_MAXCCALLS   180

Typedefs

typedef struct Memcontrol Memcontrol

Functions

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)
LUA_API void * debug_realloc (void *ud, void *block, size_t osize, size_t nsize)

Variables

LUA_API Memcontrol l_memcontrol
void * l_Trick

Macro Definition Documentation

◆ getlock

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

Definition at line 89 of file ltests.h.

◆ l_sprintf

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

Definition at line 37 of file ltests.h.

◆ LUA_COMPAT_LT_LE

#define LUA_COMPAT_LT_LE

Definition at line 20 of file ltests.h.

◆ LUA_COMPAT_MATHLIB

#define LUA_COMPAT_MATHLIB

Definition at line 19 of file ltests.h.

◆ LUA_DEBUG

#define LUA_DEBUG

Definition at line 23 of file ltests.h.

◆ LUA_EXTRASPACE

#define LUA_EXTRASPACE   sizeof(struct L_EXTRA)

Definition at line 88 of file ltests.h.

◆ lua_lock

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

Definition at line 98 of file ltests.h.

◆ LUA_RAND32

#define LUA_RAND32

Definition at line 48 of file ltests.h.

◆ lua_unlock

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

Definition at line 99 of file ltests.h.

◆ LUA_USE_JUMPTABLE

#define LUA_USE_JUMPTABLE   0

Definition at line 44 of file ltests.h.

◆ LUAI_ASSERT

#define LUAI_ASSERT

Definition at line 27 of file ltests.h.

◆ LUAI_MAXCCALLS

#define LUAI_MAXCCALLS   180

Definition at line 146 of file ltests.h.

◆ LUAI_MAXSTACK

#define LUAI_MAXSTACK   50000

Definition at line 141 of file ltests.h.

◆ LUAI_USER_ALIGNMENT_T

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

Definition at line 129 of file ltests.h.

◆ luai_userstateclose

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

Definition at line 92 of file ltests.h.

◆ luai_userstatefree

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

Definition at line 96 of file ltests.h.

◆ luai_userstateopen

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

Definition at line 90 of file ltests.h.

◆ luai_userstatethread

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

Definition at line 94 of file ltests.h.

◆ LUAL_BUFFERSIZE

#define LUAL_BUFFERSIZE   23

Definition at line 121 of file ltests.h.

◆ MAXIWTHABS

#define MAXIWTHABS   3

Definition at line 123 of file ltests.h.

◆ MINSTRTABSIZE

#define MINSTRTABSIZE   2

Definition at line 122 of file ltests.h.

◆ STRCACHE_M

#define STRCACHE_M   5

Definition at line 126 of file ltests.h.

◆ STRCACHE_N

#define STRCACHE_N   23

Definition at line 125 of file ltests.h.

◆ UNUSED

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

Definition at line 31 of file ltests.h.

Variable Documentation

◆ l_memcontrol

LUA_API Memcontrol l_memcontrol

Definition at line 62 of file ltests.h.