RetroArch
Classes | Macros | Typedefs | Functions
lstate.c File Reference
#include "lprefix.h"
#include <stddef.h>
#include <string.h>
#include "lua.h"
#include "lapi.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#include "llex.h"
#include "lmem.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
#include <time.h>
Include dependency graph for lstate.c:

Classes

struct  LX
 
struct  LG
 

Macros

#define lstate_c
 
#define LUA_CORE
 
#define LUAI_GCPAUSE   200 /* 200% */
 
#define LUAI_GCMUL   200 /* GC runs 'twice the speed' of memory allocation */
 
#define luai_makeseed()   cast(unsigned int, time(NULL))
 
#define fromstate(L)   (cast(LX *, cast(lu_byte *, (L)) - offsetof(LX, l)))
 
#define addbuff(b, p, e)
 

Typedefs

typedef struct LX LX
 
typedef struct LG LG
 

Functions

static unsigned int makeseed (lua_State *L)
 
void luaE_setdebt (global_State *g, l_mem debt)
 
CallInfoluaE_extendCI (lua_State *L)
 
void luaE_freeCI (lua_State *L)
 
void luaE_shrinkCI (lua_State *L)
 
static void stack_init (lua_State *L1, lua_State *L)
 
static void freestack (lua_State *L)
 
static void init_registry (lua_State *L, global_State *g)
 
static void f_luaopen (lua_State *L, void *ud)
 
static void preinit_thread (lua_State *L, global_State *g)
 
static void close_state (lua_State *L)
 
LUA_API lua_Statelua_newthread (lua_State *L)
 
void luaE_freethread (lua_State *L, lua_State *L1)
 
LUA_API lua_Statelua_newstate (lua_Alloc f, void *ud)
 
LUA_API void lua_close (lua_State *L)
 

Macro Definition Documentation

◆ addbuff

#define addbuff (   b,
  p,
 
)
Value:
{ size_t t = cast(size_t, e); \
memcpy(b + p, &t, sizeof(t)); p += sizeof(t); }
GLdouble GLdouble t
Definition: glext.h:6398
#define cast(t, exp)
Definition: llimits.h:111
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
GLfloat GLfloat p
Definition: glext.h:9809

◆ fromstate

#define fromstate (   L)    (cast(LX *, cast(lu_byte *, (L)) - offsetof(LX, l)))

◆ lstate_c

#define lstate_c

◆ LUA_CORE

#define LUA_CORE

◆ LUAI_GCMUL

#define LUAI_GCMUL   200 /* GC runs 'twice the speed' of memory allocation */

◆ LUAI_GCPAUSE

#define LUAI_GCPAUSE   200 /* 200% */

◆ luai_makeseed

#define luai_makeseed ( )    cast(unsigned int, time(NULL))

Typedef Documentation

◆ LG

typedef struct LG LG

◆ LX

typedef struct LX LX

Function Documentation

◆ close_state()

static void close_state ( lua_State L)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_luaopen()

static void f_luaopen ( lua_State L,
void ud 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freestack()

static void freestack ( lua_State L)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_registry()

static void init_registry ( lua_State L,
global_State g 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lua_close()

LUA_API void lua_close ( lua_State L)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lua_newstate()

LUA_API lua_State* lua_newstate ( lua_Alloc  f,
void ud 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lua_newthread()

LUA_API lua_State* lua_newthread ( lua_State L)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaE_extendCI()

CallInfo* luaE_extendCI ( lua_State L)
Here is the call graph for this function:

◆ luaE_freeCI()

void luaE_freeCI ( lua_State L)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaE_freethread()

void luaE_freethread ( lua_State L,
lua_State L1 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaE_setdebt()

void luaE_setdebt ( global_State g,
l_mem  debt 
)
Here is the caller graph for this function:

◆ luaE_shrinkCI()

void luaE_shrinkCI ( lua_State L)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeseed()

static unsigned int makeseed ( lua_State L)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ preinit_thread()

static void preinit_thread ( lua_State L,
global_State g 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stack_init()

static void stack_init ( lua_State L1,
lua_State L 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: