sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
ldebug.h File Reference
#include "lstate.h"

Go to the source code of this file.

Macros

#define pcRel(pc, p)
#define ci_func(ci)
#define resethookcount(L)
#define ABSLINEINFO   (-0x80)
#define MAXIWTHABS   128

Functions

LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc)
LUAI_FUNC const char * luaG_findlocal (lua_State *L, CallInfo *ci, int n, StkId *pos)
LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *opname)
LUAI_FUNC l_noret luaG_callerror (lua_State *L, const TValue *o)
LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o, const char *what)
LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2)
LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1, const TValue *p2, const char *msg)
LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2)
LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2)
LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt,...)
LUAI_FUNC const char * luaG_addinfo (lua_State *L, const char *msg, TString *src, int line)
LUAI_FUNC l_noret luaG_errormsg (lua_State *L)
LUAI_FUNC int luaG_traceexec (lua_State *L, const Instruction *pc)

Macro Definition Documentation

◆ ABSLINEINFO

#define ABSLINEINFO   (-0x80)

Definition at line 31 of file ldebug.h.

◆ ci_func

#define ci_func ( ci)
Value:
(clLvalue(s2v((ci)->func.p)))

Definition at line 22 of file ldebug.h.

◆ MAXIWTHABS

#define MAXIWTHABS   128

Definition at line 39 of file ldebug.h.

◆ pcRel

#define pcRel ( pc,
p )
Value:
(cast_int((pc) - (p)->code) - 1)

Definition at line 18 of file ldebug.h.

◆ resethookcount

#define resethookcount ( L)
Value:
(L->hookcount = L->basehookcount)

Definition at line 25 of file ldebug.h.

Function Documentation

◆ luaG_addinfo()

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

Definition at line 797 of file ldebug.c.

◆ luaG_callerror()

LUAI_FUNC l_noret luaG_callerror ( lua_State * L,
const TValue * o )

Definition at line 746 of file ldebug.c.

◆ luaG_concaterror()

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

Definition at line 761 of file ldebug.c.

◆ luaG_errormsg()

LUAI_FUNC l_noret luaG_errormsg ( lua_State * L)

Definition at line 809 of file ldebug.c.

◆ luaG_findlocal()

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

Definition at line 196 of file ldebug.c.

◆ luaG_forerror()

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

Definition at line 755 of file ldebug.c.

◆ luaG_getfuncline()

LUAI_FUNC int luaG_getfuncline ( const Proto * f,
int pc )

Definition at line 83 of file ldebug.c.

◆ luaG_opinterror()

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

Definition at line 767 of file ldebug.c.

◆ luaG_ordererror()

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

Definition at line 786 of file ldebug.c.

◆ luaG_runerror()

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

Definition at line 822 of file ldebug.c.

◆ luaG_tointerror()

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

Definition at line 778 of file ldebug.c.

◆ luaG_traceexec()

LUAI_FUNC int luaG_traceexec ( lua_State * L,
const Instruction * pc )

Definition at line 880 of file ldebug.c.

◆ luaG_typeerror()

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

Definition at line 736 of file ldebug.c.