MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / luaV_tointeger

Function luaV_tointeger

src/lvm.cpp:155–160  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

forlimitFunction · 0.85

Calls 2

l_strtonFunction · 0.85
luaV_tointegernsFunction · 0.85

Tested by

no test coverage detected