** try to convert a value to an integer. */
| 162 | ** try to convert a value to an integer. |
| 163 | */ |
| 164 | int 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 | /* |
no test coverage detected