RetroArch
Macros | Functions | Variables
ldblib.c File Reference
#include "lprefix.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Include dependency graph for ldblib.c:

Macros

#define ldblib_c
 
#define LUA_LIB
 

Functions

static void checkstack (lua_State *L, lua_State *L1, int n)
 
static int db_getregistry (lua_State *L)
 
static int db_getmetatable (lua_State *L)
 
static int db_setmetatable (lua_State *L)
 
static int db_getuservalue (lua_State *L)
 
static int db_setuservalue (lua_State *L)
 
static lua_Stategetthread (lua_State *L, int *arg)
 
static void settabss (lua_State *L, const char *k, const char *v)
 
static void settabsi (lua_State *L, const char *k, int v)
 
static void settabsb (lua_State *L, const char *k, int v)
 
static void treatstackoption (lua_State *L, lua_State *L1, const char *fname)
 
static int db_getinfo (lua_State *L)
 
static int db_getlocal (lua_State *L)
 
static int db_setlocal (lua_State *L)
 
static int auxupvalue (lua_State *L, int get)
 
static int db_getupvalue (lua_State *L)
 
static int db_setupvalue (lua_State *L)
 
static int checkupval (lua_State *L, int argf, int argnup)
 
static int db_upvalueid (lua_State *L)
 
static int db_upvaluejoin (lua_State *L)
 
static void hookf (lua_State *L, lua_Debug *ar)
 
static int makemask (const char *smask, int count)
 
static char * unmakemask (int mask, char *smask)
 
static int db_sethook (lua_State *L)
 
static int db_gethook (lua_State *L)
 
static int db_debug (lua_State *L)
 
static int db_traceback (lua_State *L)
 
LUAMOD_API int luaopen_debug (lua_State *L)
 

Variables

static const int HOOKKEY = 0
 
static const luaL_Reg dblib []
 

Macro Definition Documentation

◆ ldblib_c

#define ldblib_c

◆ LUA_LIB

#define LUA_LIB

Function Documentation

◆ auxupvalue()

static int auxupvalue ( lua_State L,
int  get 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkstack()

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

◆ checkupval()

static int checkupval ( lua_State L,
int  argf,
int  argnup 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ db_debug()

static int db_debug ( lua_State L)
static
Here is the call graph for this function:

◆ db_gethook()

static int db_gethook ( lua_State L)
static
Here is the call graph for this function:

◆ db_getinfo()

static int db_getinfo ( lua_State L)
static
Here is the call graph for this function:

◆ db_getlocal()

static int db_getlocal ( lua_State L)
static
Here is the call graph for this function:

◆ db_getmetatable()

static int db_getmetatable ( lua_State L)
static
Here is the call graph for this function:

◆ db_getregistry()

static int db_getregistry ( lua_State L)
static
Here is the call graph for this function:

◆ db_getupvalue()

static int db_getupvalue ( lua_State L)
static
Here is the call graph for this function:

◆ db_getuservalue()

static int db_getuservalue ( lua_State L)
static
Here is the call graph for this function:

◆ db_sethook()

static int db_sethook ( lua_State L)
static

hooktable.__mode = "k"

Here is the call graph for this function:

◆ db_setlocal()

static int db_setlocal ( lua_State L)
static
Here is the call graph for this function:

◆ db_setmetatable()

static int db_setmetatable ( lua_State L)
static
Here is the call graph for this function:

◆ db_setupvalue()

static int db_setupvalue ( lua_State L)
static
Here is the call graph for this function:

◆ db_setuservalue()

static int db_setuservalue ( lua_State L)
static
Here is the call graph for this function:

◆ db_traceback()

static int db_traceback ( lua_State L)
static
Here is the call graph for this function:

◆ db_upvalueid()

static int db_upvalueid ( lua_State L)
static
Here is the call graph for this function:

◆ db_upvaluejoin()

static int db_upvaluejoin ( lua_State L)
static
Here is the call graph for this function:

◆ getthread()

static lua_State* getthread ( lua_State L,
int *  arg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hookf()

static void hookf ( lua_State L,
lua_Debug ar 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaopen_debug()

LUAMOD_API int luaopen_debug ( lua_State L)
Here is the call graph for this function:

◆ makemask()

static int makemask ( const char *  smask,
int  count 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ settabsb()

static void settabsb ( lua_State L,
const char *  k,
int  v 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ settabsi()

static void settabsi ( lua_State L,
const char *  k,
int  v 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ settabss()

static void settabss ( lua_State L,
const char *  k,
const char *  v 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ treatstackoption()

static void treatstackoption ( lua_State L,
lua_State L1,
const char *  fname 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unmakemask()

static char* unmakemask ( int  mask,
char *  smask 
)
static
Here is the caller graph for this function:

Variable Documentation

◆ dblib

const luaL_Reg dblib[]
static
Initial value:
= {
{"debug", db_debug},
{"getuservalue", db_getuservalue},
{"gethook", db_gethook},
{"getinfo", db_getinfo},
{"getlocal", db_getlocal},
{"getregistry", db_getregistry},
{"getmetatable", db_getmetatable},
{"getupvalue", db_getupvalue},
{"upvaluejoin", db_upvaluejoin},
{"upvalueid", db_upvalueid},
{"setuservalue", db_setuservalue},
{"sethook", db_sethook},
{"setlocal", db_setlocal},
{"setmetatable", db_setmetatable},
{"setupvalue", db_setupvalue},
{"traceback", db_traceback},
}
static int db_setlocal(lua_State *L)
Definition: ldblib.c:224
static int db_upvalueid(lua_State *L)
Definition: ldblib.c:284
static int db_setuservalue(lua_State *L)
Definition: ldblib.c:75
static int db_getuservalue(lua_State *L)
Definition: ldblib.c:66
static int db_getregistry(lua_State *L)
Definition: ldblib.c:41
static int db_upvaluejoin(lua_State *L)
Definition: ldblib.c:291
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static int db_setmetatable(lua_State *L)
Definition: ldblib.c:56
static int db_setupvalue(lua_State *L)
Definition: ldblib.c:265
static int db_getinfo(lua_State *L)
Definition: ldblib.c:145
static int db_getlocal(lua_State *L)
Definition: ldblib.c:193
static int db_traceback(lua_State *L)
Definition: ldblib.c:417
static int db_debug(lua_State *L)
Definition: ldblib.c:402
static int db_getmetatable(lua_State *L)
Definition: ldblib.c:47
static int db_sethook(lua_State *L)
Definition: ldblib.c:347
static int db_gethook(lua_State *L)
Definition: ldblib.c:379
static int db_getupvalue(lua_State *L)
Definition: ldblib.c:260

◆ HOOKKEY

const int HOOKKEY = 0
static