RetroArch
Macros | Functions
ldebug.c File Reference
#include "lprefix.h"
#include <stdarg.h>
#include <stddef.h>
#include <string.h>
#include "lua.h"
#include "lapi.h"
#include "lcode.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
#include "lvm.h"
Include dependency graph for ldebug.c:

Macros

#define ldebug_c
 
#define LUA_CORE
 
#define noLuaClosure(f)   ((f) == NULL || (f)->c.tt == LUA_TCCL)
 
#define ci_func(ci)   (clLvalue((ci)->func))
 

Functions

static const char * funcnamefromcode (lua_State *L, CallInfo *ci, const char **name)
 
static int currentpc (CallInfo *ci)
 
static int currentline (CallInfo *ci)
 
static void swapextra (lua_State *L)
 
LUA_API void lua_sethook (lua_State *L, lua_Hook func, int mask, int count)
 
LUA_API lua_Hook lua_gethook (lua_State *L)
 
LUA_API int lua_gethookmask (lua_State *L)
 
LUA_API int lua_gethookcount (lua_State *L)
 
LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar)
 
static const char * upvalname (Proto *p, int uv)
 
static const char * findvararg (CallInfo *ci, int n, StkId *pos)
 
static const char * findlocal (lua_State *L, CallInfo *ci, int n, StkId *pos)
 
LUA_API const char * lua_getlocal (lua_State *L, const lua_Debug *ar, int n)
 
LUA_API const char * lua_setlocal (lua_State *L, const lua_Debug *ar, int n)
 
static void funcinfo (lua_Debug *ar, Closure *cl)
 
static void collectvalidlines (lua_State *L, Closure *f)
 
static const char * getfuncname (lua_State *L, CallInfo *ci, const char **name)
 
static int auxgetinfo (lua_State *L, const char *what, lua_Debug *ar, Closure *f, CallInfo *ci)
 
LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar)
 
static const char * getobjname (Proto *p, int lastpc, int reg, const char **name)
 
static void kname (Proto *p, int pc, int c, const char **name)
 
static int filterpc (int pc, int jmptarget)
 
static int findsetreg (Proto *p, int lastpc, int reg)
 
static int isinstack (CallInfo *ci, const TValue *o)
 
static const char * getupvalname (CallInfo *ci, const TValue *o, const char **name)
 
static const char * varinfo (lua_State *L, const TValue *o)
 
l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *op)
 
l_noret luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2)
 
l_noret luaG_opinterror (lua_State *L, const TValue *p1, const TValue *p2, const char *msg)
 
l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2)
 
l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2)
 
const char * luaG_addinfo (lua_State *L, const char *msg, TString *src, int line)
 
l_noret luaG_errormsg (lua_State *L)
 
l_noret luaG_runerror (lua_State *L, const char *fmt,...)
 
void luaG_traceexec (lua_State *L)
 

Macro Definition Documentation

◆ ci_func

#define ci_func (   ci)    (clLvalue((ci)->func))

◆ ldebug_c

#define ldebug_c

◆ LUA_CORE

#define LUA_CORE

◆ noLuaClosure

#define noLuaClosure (   f)    ((f) == NULL || (f)->c.tt == LUA_TCCL)

Function Documentation

◆ auxgetinfo()

static int auxgetinfo ( lua_State L,
const char *  what,
lua_Debug ar,
Closure f,
CallInfo ci 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ collectvalidlines()

static void collectvalidlines ( lua_State L,
Closure f 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentline()

static int currentline ( CallInfo ci)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentpc()

static int currentpc ( CallInfo ci)
static
Here is the caller graph for this function:

◆ filterpc()

static int filterpc ( int  pc,
int  jmptarget 
)
static
Here is the caller graph for this function:

◆ findlocal()

static const char* findlocal ( lua_State L,
CallInfo ci,
int  n,
StkId pos 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ findsetreg()

static int findsetreg ( Proto p,
int  lastpc,
int  reg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ findvararg()

static const char* findvararg ( CallInfo ci,
int  n,
StkId pos 
)
static
Here is the caller graph for this function:

◆ funcinfo()

static void funcinfo ( lua_Debug ar,
Closure cl 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ funcnamefromcode()

static const char * funcnamefromcode ( lua_State L,
CallInfo ci,
const char **  name 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getfuncname()

static const char* getfuncname ( lua_State L,
CallInfo ci,
const char **  name 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getobjname()

static const char * getobjname ( Proto p,
int  lastpc,
int  reg,
const char **  name 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getupvalname()

static const char* getupvalname ( CallInfo ci,
const TValue o,
const char **  name 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isinstack()

static int isinstack ( CallInfo ci,
const TValue o 
)
static
Here is the caller graph for this function:

◆ kname()

static void kname ( Proto p,
int  pc,
int  c,
const char **  name 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lua_gethook()

LUA_API lua_Hook lua_gethook ( lua_State L)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lua_gethookcount()

LUA_API int lua_gethookcount ( lua_State L)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lua_gethookmask()

LUA_API int lua_gethookmask ( lua_State L)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lua_getinfo()

LUA_API int lua_getinfo ( lua_State L,
const char *  what,
lua_Debug ar 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lua_getlocal()

LUA_API const char* lua_getlocal ( lua_State L,
const lua_Debug ar,
int  n 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lua_getstack()

LUA_API int lua_getstack ( lua_State L,
int  level,
lua_Debug ar 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lua_sethook()

LUA_API void lua_sethook ( lua_State L,
lua_Hook  func,
int  mask,
int  count 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lua_setlocal()

LUA_API const char* lua_setlocal ( lua_State L,
const lua_Debug ar,
int  n 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaG_addinfo()

const char* luaG_addinfo ( lua_State L,
const char *  msg,
TString src,
int  line 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaG_concaterror()

l_noret luaG_concaterror ( lua_State L,
const TValue p1,
const TValue p2 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaG_errormsg()

l_noret luaG_errormsg ( lua_State L)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaG_opinterror()

l_noret luaG_opinterror ( lua_State L,
const TValue p1,
const TValue p2,
const char *  msg 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaG_ordererror()

l_noret luaG_ordererror ( lua_State L,
const TValue p1,
const TValue p2 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaG_runerror()

l_noret luaG_runerror ( lua_State L,
const char *  fmt,
  ... 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaG_tointerror()

l_noret luaG_tointerror ( lua_State L,
const TValue p1,
const TValue p2 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaG_traceexec()

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

◆ luaG_typeerror()

l_noret luaG_typeerror ( lua_State L,
const TValue o,
const char *  op 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ swapextra()

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

◆ upvalname()

static const char* upvalname ( Proto p,
int  uv 
)
static
Here is the caller graph for this function:

◆ varinfo()

static const char* varinfo ( lua_State L,
const TValue o 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: