MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / lua_Integer lua_tointegerx

Function lua_Integer lua_tointegerx

extlibs/sol3/include/sol/sol.hpp:3097–3110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3095}
3096
3097COMPAT53_API lua_Integer lua_tointegerx(lua_State *L, int i, int *isnum) {
3098 int ok = 0;
3099 lua_Number n = lua_tonumberx(L, i, &ok);
3100 if (ok) {
3101 if (n == (lua_Integer)n) {
3102 if (isnum)
3103 *isnum = 1;
3104 return (lua_Integer)n;
3105 }
3106 }
3107 if (isnum)
3108 *isnum = 0;
3109 return 0;
3110}
3111
3112static void compat53_reverse(lua_State *L, int a, int b) {
3113 for (; a < b; ++a, --b) {

Callers

nothing calls this directly

Calls 1

lua_tonumberxFunction · 0.85

Tested by

no test coverage detected