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:

Go to the source code of this file.

Macros

#define ldblib_c
 
#define LUA_LIB
 

Functions

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

Variables

static const luaL_Reg dblib []
 
static const char *const HOOKKEY = "_HOOKKEY"
 

Macro Definition Documentation

◆ ldblib_c

#define ldblib_c

Definition at line 7 of file ldblib.c.

◆ LUA_LIB

#define LUA_LIB

Definition at line 8 of file ldblib.c.

Function Documentation

◆ auxupvalue()

static int auxupvalue ( lua_State L,
int  get 
)
static

Definition at line 258 of file ldblib.c.

◆ checkstack()

static void checkstack ( lua_State L,
lua_State L1,
int  n 
)
static

Definition at line 35 of file ldblib.c.

◆ checkupval()

static void* checkupval ( lua_State L,
int  argf,
int  argnup,
int *  pnup 
)
static

Definition at line 285 of file ldblib.c.

◆ db_debug()

static int db_debug ( lua_State L)
static

Definition at line 420 of file ldblib.c.

◆ db_gethook()

static int db_gethook ( lua_State L)
static

Definition at line 395 of file ldblib.c.

◆ db_getinfo()

static int db_getinfo ( lua_State L)
static

Definition at line 149 of file ldblib.c.

◆ db_getlocal()

static int db_getlocal ( lua_State L)
static

Definition at line 203 of file ldblib.c.

◆ db_getmetatable()

static int db_getmetatable ( lua_State L)
static

Definition at line 47 of file ldblib.c.

◆ db_getregistry()

static int db_getregistry ( lua_State L)
static

Definition at line 41 of file ldblib.c.

◆ db_getupvalue()

static int db_getupvalue ( lua_State L)
static

Definition at line 270 of file ldblib.c.

◆ db_getuservalue()

static int db_getuservalue ( lua_State L)
static

Definition at line 65 of file ldblib.c.

◆ db_setcstacklimit()

static int db_setcstacklimit ( lua_State L)
static

Definition at line 449 of file ldblib.c.

◆ db_sethook()

static int db_sethook ( lua_State L)
static

hooktable.__mode = "k"

Definition at line 365 of file ldblib.c.

◆ db_setlocal()

static int db_setlocal ( lua_State L)
static

Definition at line 234 of file ldblib.c.

◆ db_setmetatable()

static int db_setmetatable ( lua_State L)
static

Definition at line 56 of file ldblib.c.

◆ db_setupvalue()

static int db_setupvalue ( lua_State L)
static

Definition at line 275 of file ldblib.c.

◆ db_setuservalue()

static int db_setuservalue ( lua_State L)
static

Definition at line 77 of file ldblib.c.

◆ db_traceback()

static int db_traceback ( lua_State L)
static

Definition at line 435 of file ldblib.c.

◆ db_upvalueid()

static int db_upvalueid ( lua_State L)
static

Definition at line 298 of file ldblib.c.

◆ db_upvaluejoin()

static int db_upvaluejoin ( lua_State L)
static

Definition at line 308 of file ldblib.c.

◆ getthread()

static lua_State* getthread ( lua_State L,
int *  arg 
)
static

Definition at line 94 of file ldblib.c.

◆ hookf()

static void hookf ( lua_State L,
lua_Debug ar 
)
static

Definition at line 323 of file ldblib.c.

◆ luaopen_debug()

LUAMOD_API int luaopen_debug ( lua_State L)

Definition at line 479 of file ldblib.c.

◆ makemask()

static int makemask ( const char *  smask,
int  count 
)
static

Definition at line 342 of file ldblib.c.

◆ settabsb()

static void settabsb ( lua_State L,
const char *  k,
int  v 
)
static

Definition at line 121 of file ldblib.c.

◆ settabsi()

static void settabsi ( lua_State L,
const char *  k,
int  v 
)
static

Definition at line 116 of file ldblib.c.

◆ settabss()

static void settabss ( lua_State L,
const char *  k,
const char *  v 
)
static

Definition at line 111 of file ldblib.c.

◆ treatstackoption()

static void treatstackoption ( lua_State L,
lua_State L1,
const char *  fname 
)
static

Definition at line 134 of file ldblib.c.

◆ unmakemask()

static char* unmakemask ( int  mask,
char *  smask 
)
static

Definition at line 355 of file ldblib.c.

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},
{"setcstacklimit", db_setcstacklimit},
{NULL, NULL}
}

Definition at line 457 of file ldblib.c.

◆ HOOKKEY

const char* const HOOKKEY = "_HOOKKEY"
static

Definition at line 27 of file ldblib.c.

db_gethook
static int db_gethook(lua_State *L)
Definition: ldblib.c:395
db_upvalueid
static int db_upvalueid(lua_State *L)
Definition: ldblib.c:298
db_debug
static int db_debug(lua_State *L)
Definition: ldblib.c:420
db_sethook
static int db_sethook(lua_State *L)
Definition: ldblib.c:365
db_traceback
static int db_traceback(lua_State *L)
Definition: ldblib.c:435
db_getmetatable
static int db_getmetatable(lua_State *L)
Definition: ldblib.c:47
db_getupvalue
static int db_getupvalue(lua_State *L)
Definition: ldblib.c:270
db_getuservalue
static int db_getuservalue(lua_State *L)
Definition: ldblib.c:65
db_upvaluejoin
static int db_upvaluejoin(lua_State *L)
Definition: ldblib.c:308
db_setuservalue
static int db_setuservalue(lua_State *L)
Definition: ldblib.c:77
db_setcstacklimit
static int db_setcstacklimit(lua_State *L)
Definition: ldblib.c:449
db_getlocal
static int db_getlocal(lua_State *L)
Definition: ldblib.c:203
db_setmetatable
static int db_setmetatable(lua_State *L)
Definition: ldblib.c:56
db_setlocal
static int db_setlocal(lua_State *L)
Definition: ldblib.c:234
db_setupvalue
static int db_setupvalue(lua_State *L)
Definition: ldblib.c:275
db_getinfo
static int db_getinfo(lua_State *L)
Definition: ldblib.c:149
db_getregistry
static int db_getregistry(lua_State *L)
Definition: ldblib.c:41


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49