Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.h"
#include <string.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lgc.h"
#include "lobject.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
#include "lvm.h"
Go to the source code of this file.
Macros | |
#define | ltm_c |
#define | LUA_CORE |
Functions | |
void | luaT_init (lua_State *L) |
const TValue * | luaT_gettm (Table *events, TMS event, TString *ename) |
const TValue * | luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) |
const char * | luaT_objtypename (lua_State *L, const TValue *o) |
void | luaT_callTM (lua_State *L, const TValue *f, const TValue *p1, const TValue *p2, const TValue *p3) |
void | luaT_callTMres (lua_State *L, const TValue *f, const TValue *p1, const TValue *p2, StkId res) |
static int | callbinTM (lua_State *L, const TValue *p1, const TValue *p2, StkId res, TMS event) |
void | luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, StkId res, TMS event) |
void | luaT_tryconcatTM (lua_State *L) |
void | luaT_trybinassocTM (lua_State *L, const TValue *p1, const TValue *p2, int flip, StkId res, TMS event) |
void | luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2, int flip, StkId res, TMS event) |
int | luaT_callorderTM (lua_State *L, const TValue *p1, const TValue *p2, TMS event) |
int | luaT_callorderiTM (lua_State *L, const TValue *p1, int v2, int flip, int isfloat, TMS event) |
void | luaT_adjustvarargs (lua_State *L, int nfixparams, CallInfo *ci, const Proto *p) |
void | luaT_getvarargs (lua_State *L, CallInfo *ci, StkId where, int wanted) |
Variables | |
static const char | udatatypename [] = "userdata" |
LUAI_DDEF const char *const | luaT_typenames_ [LUA_TOTALTYPES] |
#define ltm_c |
Definition at line 7 of file lua-5.4.3/src/ltm.c.
#define LUA_CORE |
Definition at line 8 of file lua-5.4.3/src/ltm.c.
|
static |
Definition at line 137 of file lua-5.4.3/src/ltm.c.
References luaT_callTMres(), luaT_gettmbyobj(), and notm.
Referenced by luaT_callorderTM(), luaT_trybinTM(), and luaT_tryconcatTM().
Definition at line 238 of file lua-5.4.3/src/ltm.c.
References cast_int, CallInfo::func, CallInfo::l, lua_assert, luaD_checkstack, Proto::maxstacksize, CallInfo::nextraargs, s2v, setnilvalue, setobjs2s, lua_State::stack_last, CallInfo::top, lua_State::top, and CallInfo::u.
Referenced by luaV_execute().
int luaT_callorderiTM | ( | lua_State * | L, |
const TValue * | p1, | ||
int | v2, | ||
int | flip, | ||
int | isfloat, | ||
TMS | event ) |
Definition at line 221 of file lua-5.4.3/src/ltm.c.
References cast_num, luaT_callorderTM(), setfltvalue, and setivalue.
Definition at line 201 of file lua-5.4.3/src/ltm.c.
References callbinTM(), CallInfo::callstatus, lua_State::ci, CIST_LEQ, l_isfalse, luaG_ordererror(), s2v, TM_LE, TM_LT, and lua_State::top.
Referenced by luaT_callorderiTM().
void luaT_callTM | ( | lua_State * | L, |
const TValue * | f, | ||
const TValue * | p1, | ||
const TValue * | p2, | ||
const TValue * | p3 ) |
Definition at line 103 of file lua-5.4.3/src/ltm.c.
References lua_State::ci, isLuacode, luaD_call(), luaD_callnoyield(), setobj2s, and lua_State::top.
void luaT_callTMres | ( | lua_State * | L, |
const TValue * | f, | ||
const TValue * | p1, | ||
const TValue * | p2, | ||
StkId | res ) |
Definition at line 119 of file lua-5.4.3/src/ltm.c.
References lua_State::ci, isLuacode, luaD_call(), luaD_callnoyield(), restorestack, savestack, setobj2s, setobjs2s, and lua_State::top.
Referenced by callbinTM(), luaV_equalobj(), luaV_finishget(), and luaV_objlen().
Definition at line 60 of file lua-5.4.3/src/ltm.c.
References cast_byte, Table::flags, lua_assert, luaH_getshortstr(), notm, NULL, and TM_EQ.
Definition at line 71 of file lua-5.4.3/src/ltm.c.
References G, hvalue, LUA_TTABLE, LUA_TUSERDATA, luaH_getshortstr(), Table::metatable, tmname, ttype, and uvalue.
Referenced by callbinTM().
Definition at line 258 of file lua-5.4.3/src/ltm.c.
References checkstackGCp, CallInfo::func, CallInfo::l, CallInfo::nextraargs, s2v, setnilvalue, setobjs2s, lua_State::top, and CallInfo::u.
Referenced by luaV_execute().
void luaT_init | ( | lua_State * | L | ) |
Definition at line 38 of file lua-5.4.3/src/ltm.c.
References G, luaC_fix(), luaS_new, obj2gco, TM_N, and tmname.
Definition at line 91 of file lua-5.4.3/src/ltm.c.
References getstr, hvalue, luaH_getshortstr(), luaS_new, name, NULL, tsvalue, ttisfulluserdata, ttisstring, ttistable, ttype, ttypename, and uvalue.
void luaT_trybinassocTM | ( | lua_State * | L, |
const TValue * | p1, | ||
const TValue * | p2, | ||
int | flip, | ||
StkId | res, | ||
TMS | event ) |
Definition at line 175 of file lua-5.4.3/src/ltm.c.
References luaT_trybinTM().
Referenced by luaT_trybiniTM(), and luaV_execute().
void luaT_trybiniTM | ( | lua_State * | L, |
const TValue * | p1, | ||
lua_Integer | i2, | ||
int | flip, | ||
StkId | res, | ||
TMS | event ) |
Definition at line 184 of file lua-5.4.3/src/ltm.c.
References luaT_trybinassocTM(), and setivalue.
Referenced by luaV_execute().
Definition at line 148 of file lua-5.4.3/src/ltm.c.
References callbinTM(), luaG_opinterror(), luaG_tointerror(), TM_BAND, TM_BNOT, TM_BOR, TM_BXOR, TM_SHL, TM_SHR, and ttisnumber.
Referenced by luaT_trybinassocTM().
void luaT_tryconcatTM | ( | lua_State * | L | ) |
Definition at line 167 of file lua-5.4.3/src/ltm.c.
References callbinTM(), luaG_concaterror(), s2v, TM_CONCAT, and lua_State::top.
Referenced by luaV_concat().
LUAI_DDEF const char* const luaT_typenames_[LUA_TOTALTYPES] |
Definition at line 30 of file lua-5.4.3/src/ltm.c.
|
static |
Definition at line 28 of file lua-5.4.3/src/ltm.c.