Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
261
LUA_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
268
LUA_API int lua_isstring (lua_State *L, int idx) {
Callers
8
getfield
Function · 0.70
lua_Number luaL_checknumber
Function · 0.70
lua_Integer luaL_checkinteger
Function · 0.70
db_getinfo
Function · 0.70
db_errorfb
Function · 0.70
luaB_tonumber
Function · 0.70
luaB_setfenv
Function · 0.70
traceback
Method · 0.50
Calls
1
index2adr
Function · 0.70
Tested by
no test coverage detected