MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / luaV_tointeger

Function luaV_tointeger

Dependencies/lua/src/lvm.c:154–159  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

forlimitFunction · 0.85

Calls 2

l_strtonFunction · 0.85
luaV_tointegernsFunction · 0.85

Tested by

no test coverage detected