MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaV_tointeger

Function luaV_tointeger

third-party/lua-5.4.6/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.70

Calls 2

l_strtonFunction · 0.70
luaV_tointegernsFunction · 0.70

Tested by

no test coverage detected