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