Home
last modified time | relevance | path

Searched refs:lua_toboolean (Results 1 – 19 of 19) sorted by relevance

/freebsd-12.1/contrib/lua/src/
H A Dloslib.c228 res = (lua_getfield(L, -1, key) == LUA_TNIL) ? -1 : lua_toboolean(L, -1); in getboolfield()
376 status = (lua_toboolean(L, 1) ? EXIT_SUCCESS : EXIT_FAILURE); in os_exit()
379 if (lua_toboolean(L, 2)) in os_exit()
H A Dloadlib.c281 b = lua_toboolean(L, -1); in noenv()
602 if (lua_toboolean(L, -1)) /* is it there? */ in ll_require()
H A Dliolib.c601 if (lua_toboolean(L, -n)) /* read at least one value? */ in io_readline()
608 if (lua_toboolean(L, lua_upvalueindex(3))) { /* generator created file? */ in io_readline()
H A Dltablib.c296 res = lua_toboolean(L, -1); /* get result */ in sort_comp()
H A Dlbaselib.c373 if (lua_toboolean(L, 1)) /* condition is true? */ in luaB_assert()
H A Dlstrlib.c191 int strip = lua_toboolean(L, 2); in str_dump()
618 if (find && (lua_toboolean(L, 4) || nospecials(p, lp))) { in str_find_aux()
752 if (!lua_toboolean(L, -1)) { /* nil or false? */ in add_value()
H A Dlauxlib.c828 lua_pushstring(L, (lua_toboolean(L, idx) ? "true" : "false")); in luaL_tolstring()
975 if (!lua_toboolean(L, -1)) { /* package not already loaded? */ in luaL_requiref()
H A Dlua.c607 result = lua_toboolean(L, -1); /* get result */ in main()
H A Dlua.h183 LUA_API int (lua_toboolean) (lua_State *L, int idx); variable
H A Dlapi.c367 LUA_API int lua_toboolean (lua_State *L, int idx) { in lua_toboolean() function
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzcp_synctask.c136 ddsa.ddsa_defer = lua_toboolean(state, 2); in zcp_synctask_destroy()
294 boolean_t sync = lua_toboolean(state, lua_upvalueindex(2)); in zcp_synctask_wrapper()
H A Dzcp.c291 key = (lua_toboolean(state, -2) == B_TRUE ? in zcp_table_to_nvlist()
406 lua_toboolean(state, index)); in zcp_lua_to_nvlist_impl()
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dlbaselib.c234 if (!lua_toboolean(L, 1)) in luaB_assert()
H A Dltablib.c177 res = lua_toboolean(L, -1); in sort_comp()
H A Dlstrlib.c617 if (find && (lua_toboolean(L, 4) || nospecials(p, lp))) { in str_find_aux()
754 if (!lua_toboolean(L, -1)) { /* nil or false? */ in add_value()
H A Dlua.h170 LUA_API int (lua_toboolean) (lua_State *L, int idx); variable
H A Dlauxlib.c602 lua_pushstring(L, (lua_toboolean(L, idx) ? "true" : "false")); in luaL_tolstring()
H A Dlapi.c382 LUA_API int lua_toboolean (lua_State *L, int idx) { in lua_toboolean() function
/freebsd-12.1/contrib/libucl/lua/
H A Dlua_ucl.c393 obj = ucl_object_frombool (lua_toboolean (L, idx)); in ucl_object_lua_fromelt()
1031 if (lua_toboolean (L, 2)) { in lua_ucl_to_json()