MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaV_tointeger

Function luaV_tointeger

lib/lua/src/lvm.c:164–169  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

162** try to convert a value to an integer.
163*/
164int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode) {
165 TValue v;
166 if (l_strton(obj, &v)) /* does 'obj' point to a numerical string? */
167 obj = &v; /* change it to point to its corresponding number */
168 return luaV_tointegerns(obj, p, mode);
169}
170
171
172/*

Callers 1

forlimitFunction · 0.85

Calls 2

l_strtonFunction · 0.85
luaV_tointegernsFunction · 0.85

Tested by

no test coverage detected