lua5.4
宏定义 | 函数
ldebug.c 文件参考
#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"
ldebug.c 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

宏定义

#define ldebug_c
 
#define LUA_CORE
 
#define noLuaClosure(f)   ((f) == NULL || (f)->c.tt == LUA_VCCL)
 
#define invpcRel(pc, p)   ((p)->code + (pc) + 1)
 

函数

static const char * funcnamefromcode (lua_State *L, CallInfo *ci, const char **name)
 
static int currentpc (CallInfo *ci)
 
static int getbaseline (const Proto *f, int pc, int *basepc)
 
int luaG_getfuncline (const Proto *f, int pc)
 
static int getcurrentline (CallInfo *ci)
 
static void settraps (CallInfo *ci)
 
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 (const Proto *p, int uv)
 
static const char * findvararg (CallInfo *ci, int n, StkId *pos)
 
const char * luaG_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 int nextline (const Proto *p, int currentline, int pc)
 
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 (const Proto *p, int lastpc, int reg, const char **name)
 
static void kname (const Proto *p, int c, const char **name)
 
static void rname (const Proto *p, int pc, int c, const char **name)
 
static void rkname (const Proto *p, int pc, Instruction i, const char **name)
 
static int filterpc (int pc, int jmptarget)
 
static int findsetreg (const Proto *p, int lastpc, int reg)
 
static const char * gxf (const Proto *p, int pc, Instruction i, int isup)
 
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_forerror (lua_State *L, const TValue *o, const char *what)
 
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,...)
 
static int changedline (const Proto *p, int oldpc, int newpc)
 
int luaG_traceexec (lua_State *L, const Instruction *pc)
 

宏定义说明

◆ invpcRel

#define invpcRel (   pc,
 
)    ((p)->code + (pc) + 1)

◆ ldebug_c

#define ldebug_c

◆ LUA_CORE

#define LUA_CORE

◆ noLuaClosure

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

函数说明

◆ auxgetinfo()

static int auxgetinfo ( lua_State L,
const char *  what,
lua_Debug ar,
Closure f,
CallInfo ci 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ changedline()

static int changedline ( const Proto p,
int  oldpc,
int  newpc 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ collectvalidlines()

static void collectvalidlines ( lua_State L,
Closure f 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ currentpc()

static int currentpc ( CallInfo ci)
static
这是这个函数的调用关系图:

◆ filterpc()

static int filterpc ( int  pc,
int  jmptarget 
)
static
这是这个函数的调用关系图:

◆ findsetreg()

static int findsetreg ( const Proto p,
int  lastpc,
int  reg 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ findvararg()

static const char* findvararg ( CallInfo ci,
int  n,
StkId pos 
)
static
这是这个函数的调用关系图:

◆ funcinfo()

static void funcinfo ( lua_Debug ar,
Closure cl 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ funcnamefromcode()

static const char * funcnamefromcode ( lua_State L,
CallInfo ci,
const char **  name 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ getbaseline()

static int getbaseline ( const Proto f,
int  pc,
int *  basepc 
)
static
这是这个函数的调用关系图:

◆ getcurrentline()

static int getcurrentline ( CallInfo ci)
static
函数调用图:
这是这个函数的调用关系图:

◆ getfuncname()

static const char* getfuncname ( lua_State L,
CallInfo ci,
const char **  name 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ getobjname()

static const char * getobjname ( const Proto p,
int  lastpc,
int  reg,
const char **  name 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ getupvalname()

static const char* getupvalname ( CallInfo ci,
const TValue o,
const char **  name 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ gxf()

static const char* gxf ( const Proto p,
int  pc,
Instruction  i,
int  isup 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ isinstack()

static int isinstack ( CallInfo ci,
const TValue o 
)
static
这是这个函数的调用关系图:

◆ kname()

static void kname ( const Proto p,
int  c,
const char **  name 
)
static
这是这个函数的调用关系图:

◆ lua_gethook()

LUA_API lua_Hook lua_gethook ( lua_State L)
这是这个函数的调用关系图:

◆ lua_gethookcount()

LUA_API int lua_gethookcount ( lua_State L)
这是这个函数的调用关系图:

◆ lua_gethookmask()

LUA_API int lua_gethookmask ( lua_State L)
这是这个函数的调用关系图:

◆ lua_getinfo()

LUA_API int lua_getinfo ( lua_State L,
const char *  what,
lua_Debug ar 
)
函数调用图:
这是这个函数的调用关系图:

◆ lua_getlocal()

LUA_API const char* lua_getlocal ( lua_State L,
const lua_Debug ar,
int  n 
)
函数调用图:
这是这个函数的调用关系图:

◆ lua_getstack()

LUA_API int lua_getstack ( lua_State L,
int  level,
lua_Debug ar 
)
这是这个函数的调用关系图:

◆ lua_sethook()

LUA_API void lua_sethook ( lua_State L,
lua_Hook  func,
int  mask,
int  count 
)
函数调用图:
这是这个函数的调用关系图:

◆ lua_setlocal()

LUA_API const char* lua_setlocal ( lua_State L,
const lua_Debug ar,
int  n 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaG_addinfo()

const char* luaG_addinfo ( lua_State L,
const char *  msg,
TString src,
int  line 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaG_concaterror()

l_noret luaG_concaterror ( lua_State L,
const TValue p1,
const TValue p2 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaG_errormsg()

l_noret luaG_errormsg ( lua_State L)
函数调用图:
这是这个函数的调用关系图:

◆ luaG_findlocal()

const char* luaG_findlocal ( lua_State L,
CallInfo ci,
int  n,
StkId pos 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaG_forerror()

l_noret luaG_forerror ( lua_State L,
const TValue o,
const char *  what 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaG_getfuncline()

int luaG_getfuncline ( const Proto f,
int  pc 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaG_opinterror()

l_noret luaG_opinterror ( lua_State L,
const TValue p1,
const TValue p2,
const char *  msg 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaG_ordererror()

l_noret luaG_ordererror ( lua_State L,
const TValue p1,
const TValue p2 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaG_runerror()

l_noret luaG_runerror ( lua_State L,
const char *  fmt,
  ... 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaG_tointerror()

l_noret luaG_tointerror ( lua_State L,
const TValue p1,
const TValue p2 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaG_traceexec()

int luaG_traceexec ( lua_State L,
const Instruction pc 
)
函数调用图:

◆ luaG_typeerror()

l_noret luaG_typeerror ( lua_State L,
const TValue o,
const char *  op 
)
函数调用图:
这是这个函数的调用关系图:

◆ nextline()

static int nextline ( const Proto p,
int  currentline,
int  pc 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ rkname()

static void rkname ( const Proto p,
int  pc,
Instruction  i,
const char **  name 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ rname()

static void rname ( const Proto p,
int  pc,
int  c,
const char **  name 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ settraps()

static void settraps ( CallInfo ci)
static
这是这个函数的调用关系图:

◆ upvalname()

static const char* upvalname ( const Proto p,
int  uv 
)
static
这是这个函数的调用关系图:

◆ varinfo()

static const char* varinfo ( lua_State L,
const TValue o 
)
static
函数调用图:
这是这个函数的调用关系图: