Go to the documentation of this file.
39 static const char *
const luaT_eventname[] = {
40 "__index",
"__newindex",
41 "__gc",
"__mode",
"__len",
"__eq",
42 "__add",
"__sub",
"__mul",
"__mod",
"__pow",
44 "__band",
"__bor",
"__bxor",
"__shl",
"__shr",
45 "__unm",
"__bnot",
"__lt",
"__le",
46 "__concat",
"__call",
"__close"
49 for (i=0; i<
TM_N; i++) {
50 G(L)->tmname[i] =
luaS_new(L, luaT_eventname[i]);
142 if (
notm(tm))
return 0;
150 if (l_unlikely(!
callbinTM(L, p1, p2, res, event))) {
205 #if defined(LUA_COMPAT_LT_LE)
206 else if (event ==
TM_LE) {
222 int flip,
int isfloat,
TMS event) {
242 int nextra = actual - nfixparams;
243 ci->
u.
l.nextraargs = nextra;
248 for (i = 1; i <= nfixparams; i++) {
252 ci->
func += actual + 1;
253 ci->
top += actual + 1;
260 int nextra = ci->
u.
l.nextraargs;
264 L->
top = where + nextra;
266 for (i = 0; i < wanted && i < nextra; i++)
268 for (; i < wanted; i++)
void luaT_init(lua_State *L)
void luaT_callTM(lua_State *L, const TValue *f, const TValue *p1, const TValue *p2, const TValue *p3)
#define setobjs2s(L, o1, o2)
TString * luaS_new(lua_State *L, const char *str)
l_noret luaG_ordererror(lua_State *L, const TValue *p1, const TValue *p2)
static int callbinTM(lua_State *L, const TValue *p1, const TValue *p2, StkId res, TMS event)
#define restorestack(L, n)
const TValue * luaT_gettm(Table *events, TMS event, TString *ename)
void luaC_fix(lua_State *L, GCObject *o)
l_noret luaG_tointerror(lua_State *L, const TValue *p1, const TValue *p2)
const TValue * luaH_getshortstr(Table *t, TString *key)
void luaD_callnoyield(lua_State *L, StkId func, int nResults)
unsigned short callstatus
const char * luaT_objtypename(lua_State *L, const TValue *o)
void luaD_call(lua_State *L, StkId func, int nResults)
#define luaD_checkstack(L, n)
void luaT_getvarargs(lua_State *L, CallInfo *ci, StkId where, int wanted)
l_noret luaG_opinterror(lua_State *L, const TValue *p1, const TValue *p2, const char *msg)
void luaT_adjustvarargs(lua_State *L, int nfixparams, CallInfo *ci, const Proto *p)
void luaT_callTMres(lua_State *L, const TValue *f, const TValue *p1, const TValue *p2, StkId res)
l_noret luaG_concaterror(lua_State *L, const TValue *p1, const TValue *p2)
#define setivalue(obj, x)
void luaT_trybinassocTM(lua_State *L, const TValue *p1, const TValue *p2, int flip, StkId res, TMS event)
int luaT_callorderTM(lua_State *L, const TValue *p1, const TValue *p2, TMS event)
void luaT_trybiniTM(lua_State *L, const TValue *p1, lua_Integer i2, int flip, StkId res, TMS event)
const TValue * luaT_gettmbyobj(lua_State *L, const TValue *o, TMS event)
#define setobj2s(L, o1, o2)
#define setfltvalue(obj, x)
static const char udatatypename[]
#define checkstackGCp(L, n, p)
basic_metatable< reference > metatable
void luaT_trybinTM(lua_State *L, const TValue *p1, const TValue *p2, StkId res, TMS event)
int luaT_callorderiTM(lua_State *L, const TValue *p1, int v2, int flip, int isfloat, TMS event)
#define ttisfulluserdata(o)
const LUAI_DDEF char *const luaT_typenames_[LUA_TOTALTYPES]
struct CallInfo::@12::@14 l
void luaT_tryconcatTM(lua_State *L)
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45