Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ lua_toboolean
Function
lua_toboolean
depends/lua/src/lapi.c:367–370 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
365
366
367
LUA_API int lua_toboolean (lua_State *L, int idx) {
368
const TValue *o = index2addr(L, idx);
369
return !l_isfalse(o);
370
}
371
372
373
LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) {
Callers
15
is_builtin
Method · 0.85
run_dfhack_init
Function · 0.85
dfhack_exception_tostring
Function · 0.85
PushModule
Method · 0.85
dfhack_cleanup_cont
Function · 0.85
lua_write
Method · 0.85
autovivify_ptr
Function · 0.85
lua_item_write
Method · 0.85
meta_bitfield_newindex
Function · 0.85
get_bool_field
Function · 0.85
decode_pen
Function · 0.85
dfhack_matinfo_toString
Function · 0.85
Calls
1
index2addr
Function · 0.85
Tested by
1
do_command
Function · 0.68