Home
last modified time | relevance | path

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

/freebsd/contrib/lua/src/
H A Dlutf8lib.c102 int lax = lua_toboolean(L, 4); in utflen()
131 int lax = lua_toboolean(L, 4); in codepoint()
259 int lax = lua_toboolean(L, 2); in iter_codes()
H A Dloslib.c245 res = (lua_getfield(L, -1, key) == LUA_TNIL) ? -1 : lua_toboolean(L, -1); in getboolfield()
395 status = (lua_toboolean(L, 1) ? EXIT_SUCCESS : EXIT_FAILURE); in os_exit()
398 if (lua_toboolean(L, 2)) in os_exit()
H A Dloadlib.c288 b = lua_toboolean(L, -1); in noenv()
662 if (lua_toboolean(L, -1)) /* is it there? */ in ll_require()
H A Dliolib.c641 if (lua_toboolean(L, -n)) /* read at least one value? */ in io_readline()
648 if (lua_toboolean(L, lua_upvalueindex(3))) { /* generator created file? */ in io_readline()
H A Dltablib.c284 res = lua_toboolean(L, -1); /* get result */ in sort_comp()
H A Dlauxlib.c908 lua_pushstring(L, (lua_toboolean(L, idx) ? "true" : "false")); in luaL_tolstring()
978 if (!lua_toboolean(L, -1)) { /* package not already loaded? */ in luaL_requiref()
H A Dlbaselib.c426 if (l_likely(lua_toboolean(L, 1))) /* condition is true? */ in luaB_assert()
H A Dlua.c674 result = lua_toboolean(L, -1); /* get result */ in main()
H A Dlstrlib.c235 int strip = lua_toboolean(L, 2); in str_dump()
783 if (find && (lua_toboolean(L, 4) || nospecials(p, lp))) { in str_find_aux()
927 if (!lua_toboolean(L, -1)) { /* nil or false? */ in add_value()
H A Dlua.h203 LUA_API int (lua_toboolean) (lua_State *L, int idx); variable
H A Dltests.c126 if (!lua_toboolean(L, -1)) in warnf()
1660 lua_pushboolean(L, lua_toboolean(L1, idx)); in runC()
1723 lua_pushboolean(L1, lua_toboolean(L1, getindex)); in runC()
H A Dlapi.c399 LUA_API int lua_toboolean (lua_State *L, int idx) { in lua_toboolean() function
/freebsd/contrib/llvm-project/lldb/bindings/lua/
H A Dlua-wrapper.swig38 bool stop = lua_toboolean(L, -1);
68 bool stop = lua_toboolean(L, -1);
/freebsd/contrib/lutok/
H A Dstate.cpp561 const bool more = lua_toboolean(_pimpl->lua_state, -1); in next()
828 return lua_toboolean(_pimpl->lua_state, index); in to_boolean()
H A Dstate_test.cpp746 ATF_REQUIRE(lua_toboolean(raw(state), -1)); in ATF_TEST_CASE_BODY()
749 ATF_REQUIRE(!lua_toboolean(raw(state), -1)); in ATF_TEST_CASE_BODY()
750 ATF_REQUIRE(lua_toboolean(raw(state), -2)); in ATF_TEST_CASE_BODY()
945 ATF_REQUIRE(lua_toboolean(raw(state), -1)); in ATF_TEST_CASE_BODY()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzcp_synctask.c151 ddsa.ddsa_defer = lua_toboolean(state, 2); in zcp_synctask_destroy()
517 boolean_t sync = lua_toboolean(state, lua_upvalueindex(2)); in zcp_synctask_wrapper()
H A Dzcp.c273 key = (lua_toboolean(state, -2) == B_TRUE ? in zcp_table_to_nvlist()
388 lua_toboolean(state, index)); in zcp_lua_to_nvlist_impl()
/freebsd/contrib/libucl/lua/
H A Dlua_ucl.c498 obj = ucl_object_frombool (lua_toboolean (L, idx)); in ucl_object_lua_fromelt()
1333 if (lua_toboolean (L, 2)) { in lua_ucl_to_json()
1438 sort = lua_toboolean (L, 3); in lua_ucl_to_format()
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlbaselib.c227 if (!lua_toboolean(L, 1)) in luaB_assert()
H A Dltablib.c175 res = lua_toboolean(L, -1); in sort_comp()
H A Dlstrlib.c598 if (find && (lua_toboolean(L, 4) || nospecials(p, lp))) { in str_find_aux()
735 if (!lua_toboolean(L, -1)) { /* nil or false? */ in add_value()
H A Dlapi.c381 LUA_API int lua_toboolean (lua_State *L, int idx) { in lua_toboolean() function
1316 EXPORT_SYMBOL(lua_toboolean);
H A Dlauxlib.c600 lua_pushstring(L, (lua_toboolean(L, idx) ? "true" : "false")); in luaL_tolstring()
/freebsd/lib/clang/liblldb/
H A DLLDBWrapLua.cpp2274 const int is_inheritable = lua_toboolean(L,-2); in SWIG_Lua_add_class_user_metamethods()
3831 bool stop = lua_toboolean(L, -1); in LLDBSwigLuaBreakpointCallbackFunction()
3861 bool stop = lua_toboolean(L, -1); in LLDBSwigLuaWatchpointCallbackFunction()
5640 arg2 = (lua_toboolean(L, 2)!=0); in _wrap_new_SBAttachInfo__SWIG_2()
5665 arg2 = (lua_toboolean(L, 2)!=0); in _wrap_new_SBAttachInfo__SWIG_3()
5666 arg3 = (lua_toboolean(L, 3)!=0); in _wrap_new_SBAttachInfo__SWIG_3()
5985 arg2 = (lua_toboolean(L, 2)!=0); in _wrap_SBAttachInfo_SetWaitForLaunch__SWIG_0()
6013 arg2 = (lua_toboolean(L, 2)!=0); in _wrap_SBAttachInfo_SetWaitForLaunch__SWIG_1()
6014 arg3 = (lua_toboolean(L, 3)!=0); in _wrap_SBAttachInfo_SetWaitForLaunch__SWIG_1()
6123 arg2 = (lua_toboolean(L, 2)!=0); in _wrap_SBAttachInfo_SetIgnoreExisting()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/lua/
H A Dlua.h170 LUA_API int (lua_toboolean) (lua_State *L, int idx); variable