MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaB_type

Function luaB_type

depends/lua/src/lbaselib.c:201–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199
200
201static int luaB_type (lua_State *L) {
202 int t = lua_type(L, 1);
203 luaL_argcheck(L, t != LUA_TNONE, 1, "value expected");
204 lua_pushstring(L, lua_typename(L, t));
205 return 1;
206}
207
208
209static int pairsmeta (lua_State *L, const char *method, int iszero,

Callers

nothing calls this directly

Calls 3

lua_typeFunction · 0.85
lua_pushstringFunction · 0.85
lua_typenameFunction · 0.85

Tested by

no test coverage detected