Home
last modified time | relevance | path

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

/netbsd-src/external/mit/lua/dist/src/
H A Dlutf8lib.c106 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 Dloslib.c247 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 Dloadlib.c290 b = lua_toboolean(L, -1); in noenv()
664 if (lua_toboolean(L, -1)) /* is it there? */ in ll_require()
H A Dliolib.c643 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 Dltablib.c288 res = lua_toboolean(L, -1); /* get result */ in sort_comp()
H A Dlauxlib.c926 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 Dlbaselib.c434 if (l_likely(lua_toboolean(L, 1))) /* condition is true? */ in luaB_assert()
H A Dlua.c676 result = lua_toboolean(L, -1); /* get result */ in main()
H A Dlstrlib.c239 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 Dlua.h211 LUA_API int (lua_toboolean) (lua_State *L, int idx); variable
H A Dlapi.c407 LUA_API int lua_toboolean (lua_State *L, int idx) { in lua_toboolean() function
/netbsd-src/external/bsd/lutok/dist/
H A Dstate.cpp561 const bool more = lua_toboolean(_pimpl->lua_state, -1); in next()
816 return lua_toboolean(_pimpl->lua_state, index); in to_boolean()
H A Dstate_test.cpp840 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()