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

Function lua_isinteger

3rdparty/lua/sol/sol.hpp:4244–4252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4242}
4243
4244COMPAT53_API int lua_isinteger(lua_State* L, int index) {
4245 if (lua_type(L, index) == LUA_TNUMBER) {
4246 lua_Number n = lua_tonumber(L, index);
4247 lua_Integer i = lua_tointeger(L, index);
4248 if (i == n)
4249 return 1;
4250 }
4251 return 0;
4252}
4253
4254COMPAT53_API lua_Integer lua_tointegerx(lua_State* L, int i, int* isnum) {
4255 int ok = 0;

Callers 5

checkMethod · 0.70
getMethod · 0.70
get_usingMethod · 0.70
luaopen_yasioFunction · 0.50
json_append_numberFunction · 0.50

Calls 1

lua_typeFunction · 0.85

Tested by

no test coverage detected