Searched refs:lua_toboolean (Results 1 – 13 of 13) sorted by relevance
/netbsd-src/external/mit/lua/dist/src/ |
H A D | lutf8lib.c | 106 int lax = lua_toboolean(L, 4); in utflen() 135 int lax = lua_toboolean(L, 4); in codepoint() 263 int lax = lua_toboolean(L, 2); in iter_codes()
|
H A D | loslib.c | 247 res = (lua_getfield(L, -1, key) == LUA_TNIL) ? -1 : lua_toboolean(L, -1); in getboolfield() 397 status = (lua_toboolean(L, 1) ? EXIT_SUCCESS : EXIT_FAILURE); in os_exit() 400 if (lua_toboolean(L, 2)) in os_exit()
|
H A D | loadlib.c | 290 b = lua_toboolean(L, -1); in noenv() 664 if (lua_toboolean(L, -1)) /* is it there? */ in ll_require()
|
H A D | liolib.c | 643 if (lua_toboolean(L, -n)) /* read at least one value? */ in io_readline() 650 if (lua_toboolean(L, lua_upvalueindex(3))) { /* generator created file? */ in io_readline()
|
H A D | ltablib.c | 288 res = lua_toboolean(L, -1); /* get result */ in sort_comp()
|
H A D | lauxlib.c | 926 lua_pushstring(L, (lua_toboolean(L, idx) ? "true" : "false")); in luaL_tolstring() 996 if (!lua_toboolean(L, -1)) { /* package not already loaded? */ in luaL_requiref()
|
H A D | lbaselib.c | 434 if (l_likely(lua_toboolean(L, 1))) /* condition is true? */ in luaB_assert()
|
H A D | lua.c | 676 result = lua_toboolean(L, -1); /* get result */ in main()
|
H A D | lstrlib.c | 239 int strip = lua_toboolean(L, 2); in str_dump() 791 if (find && (lua_toboolean(L, 4) || nospecials(p, lp))) { in str_find_aux() 935 if (!lua_toboolean(L, -1)) { /* nil or false? */ in add_value()
|
H A D | lua.h | 211 LUA_API int (lua_toboolean) (lua_State *L, int idx); variable
|
H A D | lapi.c | 407 LUA_API int lua_toboolean (lua_State *L, int idx) { in lua_toboolean() function
|
/netbsd-src/external/bsd/lutok/dist/ |
H A D | state.cpp | 561 const bool more = lua_toboolean(_pimpl->lua_state, -1); in next() 816 return lua_toboolean(_pimpl->lua_state, index); in to_boolean()
|
H A D | state_test.cpp | 840 ATF_REQUIRE(lua_toboolean(raw(state), -1)); in ATF_TEST_CASE_BODY() 843 ATF_REQUIRE(!lua_toboolean(raw(state), -1)); in ATF_TEST_CASE_BODY() 844 ATF_REQUIRE(lua_toboolean(raw(state), -2)); in ATF_TEST_CASE_BODY() 1091 ATF_REQUIRE(lua_toboolean(raw(state), -1)); in ATF_TEST_CASE_BODY()
|