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

Function luaV_tointeger

extlibs/lua/src/lvm.c:152–157  ·  view source on GitHub ↗

** try to convert a value to an integer. */

Source from the content-addressed store, hash-verified

150** try to convert a value to an integer.
151*/
152int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode) {
153 TValue v;
154 if (l_strton(obj, &v)) /* does 'obj' point to a numerical string? */
155 obj = &v; /* change it to point to its corresponding number */
156 return luaV_tointegerns(obj, p, mode);
157}
158
159
160/*

Callers 1

forlimitFunction · 0.85

Calls 2

l_strtonFunction · 0.85
luaV_tointegernsFunction · 0.85

Tested by

no test coverage detected