MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / lua_type

Function lua_type

xrepo/packages/l/lua/port/lua/src/lapi.c:288–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286
287
288LUA_API int lua_type (lua_State *L, int idx) {
289 const TValue *o = index2value(L, idx);
290 return (isvalid(L, o) ? ttype(o) : LUA_TNONE);
291}
292
293
294LUA_API const char *lua_typename (lua_State *L, int t) {

Callers 15

msghandlerFunction · 0.70
luaB_tonumberFunction · 0.70
luaB_errorFunction · 0.70
luaB_setmetatableFunction · 0.70
luaB_rawlenFunction · 0.70
luaB_typeFunction · 0.70
luaB_selectFunction · 0.70
math_typeFunction · 0.70
tonumFunction · 0.70
trymtFunction · 0.70
str_gsubFunction · 0.70
addliteralFunction · 0.70

Calls 1

index2valueFunction · 0.85

Tested by

no test coverage detected