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:

Go to the source code of this file.

Macros

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

Functions

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

Macro Definition Documentation

◆ ldebug_c

#define ldebug_c

Definition at line 7 of file ldebug.c.

◆ LUA_CORE

#define LUA_CORE

Definition at line 8 of file ldebug.c.

◆ noLuaClosure

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

Definition at line 34 of file ldebug.c.

Function Documentation

◆ auxgetinfo()

static int auxgetinfo ( lua_State L,
const char *  what,
lua_Debug ar,
Closure f,
CallInfo ci 
)
static

Definition at line 326 of file ldebug.c.

◆ changedline()

static int changedline ( const Proto p,
int  oldpc,
int  newpc 
)
static

Definition at line 800 of file ldebug.c.

◆ collectvalidlines()

static void collectvalidlines ( lua_State L,
Closure f 
)
static

Definition at line 290 of file ldebug.c.

◆ currentpc()

static int currentpc ( CallInfo ci)
static

Definition at line 41 of file ldebug.c.

◆ filterpc()

static int filterpc ( int  pc,
int  jmptarget 
)
static

Definition at line 454 of file ldebug.c.

◆ findsetreg()

static int findsetreg ( const Proto p,
int  lastpc,
int  reg 
)
static

Definition at line 464 of file ldebug.c.

◆ findvararg()

static const char* findvararg ( CallInfo ci,
int  n,
StkId pos 
)
static

Definition at line 184 of file ldebug.c.

◆ funcinfo()

static void funcinfo ( lua_Debug ar,
Closure cl 
)
static

Definition at line 256 of file ldebug.c.

◆ funcnamefromcode()

static const char * funcnamefromcode ( lua_State L,
CallInfo ci,
const char **  name 
)
static

Definition at line 593 of file ldebug.c.

◆ getbaseline()

static int getbaseline ( const Proto f,
int  pc,
int *  basepc 
)
static

Definition at line 60 of file ldebug.c.

◆ getcurrentline()

static int getcurrentline ( CallInfo ci)
static

Definition at line 98 of file ldebug.c.

◆ getfuncname()

static const char* getfuncname ( lua_State L,
CallInfo ci,
const char **  name 
)
static

Definition at line 312 of file ldebug.c.

◆ getobjname()

static const char * getobjname ( const Proto p,
int  lastpc,
int  reg,
const char **  name 
)
static

Definition at line 525 of file ldebug.c.

◆ getupvalname()

static const char* getupvalname ( CallInfo ci,
const TValue o,
const char **  name 
)
static

Definition at line 664 of file ldebug.c.

◆ gxf()

static const char* gxf ( const Proto p,
int  pc,
Instruction  i,
int  isup 
)
static

Definition at line 514 of file ldebug.c.

◆ isinstack()

static int isinstack ( CallInfo ci,
const TValue o 
)
static

Definition at line 649 of file ldebug.c.

◆ kname()

static void kname ( const Proto p,
int  c,
const char **  name 
)
static

Definition at line 426 of file ldebug.c.

◆ lua_gethook()

LUA_API lua_Hook lua_gethook ( lua_State L)

Definition at line 145 of file ldebug.c.

◆ lua_gethookcount()

LUA_API int lua_gethookcount ( lua_State L)

Definition at line 155 of file ldebug.c.

◆ lua_gethookmask()

LUA_API int lua_gethookmask ( lua_State L)

Definition at line 150 of file ldebug.c.

◆ lua_getinfo()

LUA_API int lua_getinfo ( lua_State L,
const char *  what,
lua_Debug ar 
)

Definition at line 382 of file ldebug.c.

◆ lua_getlocal()

const LUA_API char* lua_getlocal ( lua_State L,
const lua_Debug ar,
int  n 
)

Definition at line 220 of file ldebug.c.

◆ lua_getstack()

LUA_API int lua_getstack ( lua_State L,
int  level,
lua_Debug ar 
)

Definition at line 160 of file ldebug.c.

◆ lua_sethook()

LUA_API void lua_sethook ( lua_State L,
lua_Hook  func,
int  mask,
int  count 
)

Definition at line 131 of file ldebug.c.

◆ lua_setlocal()

const LUA_API char* lua_setlocal ( lua_State L,
const lua_Debug ar,
int  n 
)

Definition at line 242 of file ldebug.c.

◆ luaG_addinfo()

const char* luaG_addinfo ( lua_State L,
const char *  msg,
TString src,
int  line 
)

Definition at line 753 of file ldebug.c.

◆ luaG_callerror()

l_noret luaG_callerror ( lua_State L,
const TValue o 
)

Definition at line 698 of file ldebug.c.

◆ luaG_concaterror()

l_noret luaG_concaterror ( lua_State L,
const TValue p1,
const TValue p2 
)

Definition at line 717 of file ldebug.c.

◆ luaG_errormsg()

l_noret luaG_errormsg ( lua_State L)

Definition at line 765 of file ldebug.c.

◆ luaG_findlocal()

const char* luaG_findlocal ( lua_State L,
CallInfo ci,
int  n,
StkId pos 
)

Definition at line 196 of file ldebug.c.

◆ luaG_forerror()

l_noret luaG_forerror ( lua_State L,
const TValue o,
const char *  what 
)

Definition at line 711 of file ldebug.c.

◆ luaG_getfuncline()

int luaG_getfuncline ( const Proto f,
int  pc 
)

Definition at line 83 of file ldebug.c.

◆ luaG_opinterror()

l_noret luaG_opinterror ( lua_State L,
const TValue p1,
const TValue p2,
const char *  msg 
)

Definition at line 723 of file ldebug.c.

◆ luaG_ordererror()

l_noret luaG_ordererror ( lua_State L,
const TValue p1,
const TValue p2 
)

Definition at line 742 of file ldebug.c.

◆ luaG_runerror()

l_noret luaG_runerror ( lua_State L,
const char *  fmt,
  ... 
)

Definition at line 778 of file ldebug.c.

◆ luaG_tointerror()

l_noret luaG_tointerror ( lua_State L,
const TValue p1,
const TValue p2 
)

Definition at line 734 of file ldebug.c.

◆ luaG_traceexec()

int luaG_traceexec ( lua_State L,
const Instruction pc 
)

Definition at line 833 of file ldebug.c.

◆ luaG_typeerror()

l_noret luaG_typeerror ( lua_State L,
const TValue o,
const char *  op 
)

Definition at line 692 of file ldebug.c.

◆ nextline()

static int nextline ( const Proto p,
int  currentline,
int  pc 
)
static

Definition at line 282 of file ldebug.c.

◆ rkname()

static void rkname ( const Proto p,
int  pc,
Instruction  i,
const char **  name 
)
static

Definition at line 445 of file ldebug.c.

◆ rname()

static void rname ( const Proto p,
int  pc,
int  c,
const char **  name 
)
static

Definition at line 435 of file ldebug.c.

◆ settraps()

static void settraps ( CallInfo ci)
static

Definition at line 114 of file ldebug.c.

◆ upvalname()

static const char* upvalname ( const Proto p,
int  uv 
)
static

Definition at line 177 of file ldebug.c.

◆ varinfo()

static const char* varinfo ( lua_State L,
const TValue o 
)
static

Definition at line 678 of file ldebug.c.



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