| 2160 | |
| 2161 | |
| 2162 | LUA_API lua_Number lua_tonumber (lua_State *L, int idx) { |
| 2163 | TValue n; |
| 2164 | const TValue *o = index2adr(L, idx); |
| 2165 | if (tonumber(o, &n)) |
| 2166 | return nvalue(o); |
| 2167 | else |
| 2168 | return 0; |
| 2169 | } |
| 2170 | |
| 2171 | |
| 2172 | LUA_API lua_Integer lua_tointeger (lua_State *L, int idx) { |
no test coverage detected