Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ lua_isnumber
Function
lua_isnumber
depends/lua/src/lapi.c:276–280 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
274
275
276
LUA_API int lua_isnumber (lua_State *L, int idx) {
277
lua_Number n;
278
const TValue *o = index2addr(L, idx);
279
return tonumber(o, &n);
280
}
281
282
283
LUA_API int lua_isstring (lua_State *L, int idx) {
Callers
15
lua_write
Method · 0.85
lua_item_count
Method · 0.85
lua_item_write
Method · 0.85
cur_iter_index
Function · 0.85
check_container_index
Function · 0.85
meta_bitfield_newindex
Function · 0.85
get_int_field
Function · 0.85
get_int_or_closure_field
Function · 0.85
decode_matinfo
Function · 0.85
CheckPen
Method · 0.85
adjust_pen
Function · 0.85
dfhack_random_init
Function · 0.85
Calls
1
index2addr
Function · 0.85
Tested by
no test coverage detected