MCPcopy 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
276LUA_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
283LUA_API int lua_isstring (lua_State *L, int idx) {

Callers 15

lua_writeMethod · 0.85
lua_item_countMethod · 0.85
lua_item_writeMethod · 0.85
cur_iter_indexFunction · 0.85
check_container_indexFunction · 0.85
meta_bitfield_newindexFunction · 0.85
get_int_fieldFunction · 0.85
get_int_or_closure_fieldFunction · 0.85
decode_matinfoFunction · 0.85
CheckPenMethod · 0.85
adjust_penFunction · 0.85
dfhack_random_initFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected