Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Achain-Dev/Achain
/ lua_toboolean
Function
lua_toboolean
src/Chain/libraries/glua/lapi.cpp:370–373 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
368
369
370
LUA_API int lua_toboolean(lua_State *L, int idx) {
371
const TValue *o = index2addr(L, idx);
372
return !l_isfalse(o);
373
}
374
375
376
LUA_API const char *lua_tolstring(lua_State *L, int idx, size_t *len) {
Callers
15
getboolfield
Function · 0.85
os_exit
Function · 0.85
sort_comp
Function · 0.85
noenv
Function · 0.85
str_dump
Function · 0.85
str_find_aux
Function · 0.85
add_value
Function · 0.85
io_readline
Function · 0.85
luaL_require_module
Function · 0.85
luaL_get_contract_apis
Function · 0.85
luaL_import_contract_module_from_address
Function · 0.85
luaL_import_contract_module
Function · 0.85
Calls
1
index2addr
Function · 0.85
Tested by
no test coverage detected