MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / lua_isnumber

Function lua_isnumber

other_src/lua/src/lapi.cpp:261–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259
260
261LUA_API int lua_isnumber (lua_State *L, int idx) {
262 TValue n;
263 const TValue *o = index2adr(L, idx);
264 return tonumber(o, &n);
265}
266
267
268LUA_API int lua_isstring (lua_State *L, int idx) {

Callers 8

getfieldFunction · 0.70
db_getinfoFunction · 0.70
db_errorfbFunction · 0.70
luaB_tonumberFunction · 0.70
luaB_setfenvFunction · 0.70
tracebackMethod · 0.50

Calls 1

index2adrFunction · 0.70

Tested by

no test coverage detected