MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / math_type

Function math_type

extlibs/lua/src/lmathlib.c:233–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231
232
233static int math_type (lua_State *L) {
234 if (lua_type(L, 1) == LUA_TNUMBER)
235 lua_pushstring(L, (lua_isinteger(L, 1)) ? "integer" : "float");
236 else {
237 luaL_checkany(L, 1);
238 luaL_pushfail(L);
239 }
240 return 1;
241}
242
243
244

Callers

nothing calls this directly

Calls 4

lua_typeFunction · 0.85
lua_pushstringFunction · 0.85
luaL_checkanyFunction · 0.85
lua_isintegerFunction · 0.70

Tested by

no test coverage detected