MCPcopy Create free account
hub / github.com/axmolengine/axmol / math_type

Function math_type

3rdparty/lua/plainlua/lmathlib.c:234–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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