Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ lua_toboolean
Function
lua_toboolean
source/extern/lua/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
13
luaB_assert
Function · 0.85
str_dump
Function · 0.85
str_find_aux
Function · 0.85
add_value
Function · 0.85
luaL_tolstring
Function · 0.85
luaL_requiref
Function · 0.85
sort_comp
Function · 0.85
noenv
Function · 0.85
ll_require
Function · 0.85
getboolfield
Function · 0.85
os_exit
Function · 0.85
io_readline
Function · 0.85
Calls
1
index2addr
Function · 0.85
Tested by
no test coverage detected