Home
last modified time | relevance | path

Searched refs:lua_tointeger (Results 1 – 15 of 15) sorted by relevance

/netbsd-src/external/bsd/lutok/dist/
H A Dstate_test.cpp112 const int i1 = lua_tointeger(raw_state, state.upvalue_index(1)); in c_get_upvalues()
113 const int i2 = lua_tointeger(raw_state, state.upvalue_index(2)); in c_get_upvalues()
131 const int f1 = lua_tointeger(raw(state), lua_upvalueindex(1)); in cxx_multiply_closure()
132 const int f2 = lua_tointeger(raw(state), -1); in cxx_multiply_closure()
244 ATF_REQUIRE_EQ(567, lua_tointeger(raw(state), -1)); in ATF_TEST_CASE_BODY()
275 ATF_REQUIRE_EQ(567, lua_tointeger(raw(state), -1)); in ATF_TEST_CASE_BODY()
294 ATF_REQUIRE_EQ(567, lua_tointeger(raw(state), -1)); in ATF_TEST_CASE_BODY()
319 ATF_REQUIRE_EQ(234, lua_tointeger(raw(state), -1)); in ATF_TEST_CASE_BODY()
372 ATF_REQUIRE_EQ(3, lua_tointeger(raw(state), -1)); in ATF_TEST_CASE_BODY()
373 ATF_REQUIRE_EQ(2, lua_tointeger(raw(state), -2)); in ATF_TEST_CASE_BODY()
[all …]
H A Dc_gate_test.cpp50 ATF_REQUIRE_EQ(123, lua_tointeger(raw_state, -1)); in ATF_TEST_CASE_BODY()
64 ATF_REQUIRE_EQ(5, lua_tointeger(raw_state, -1)); in ATF_TEST_CASE_BODY()
H A Dstate.cpp829 return lua_tointeger(_pimpl->lua_state, index); in to_integer()
/netbsd-src/lib/lua/libm/
H A Dlibm.c84 int i = (int)lua_tointeger(L, 1); \
199 int i = (int)lua_tointeger(L, 2); in libm_scalbn()
/netbsd-src/external/mit/lua/dist/src/
H A Dlmathlib.c33 lua_Integer n = lua_tointeger(L, 1); in math_abs()
121 lua_Integer d = lua_tointeger(L, 2); in math_fmod()
127 lua_pushinteger(L, lua_tointeger(L, 1) % d); in math_fmod()
H A Dlutf8lib.c235 lua_Unsigned n = (lua_Unsigned)lua_tointeger(L, 2); in iter_aux()
H A Dliolib.c634 int n = (int)lua_tointeger(L, lua_upvalueindex(2)); in io_readline()
670 (LUAI_UACINT)lua_tointeger(L, arg)) in g_write()
H A Dlauxlib.c687 ref = (int)lua_tointeger(L, -1); /* ref = t[freelist] */ in luaL_ref()
915 lua_pushfstring(L, "%I", (LUAI_UACINT)lua_tointeger(L, idx)); in luaL_tolstring()
H A Dlua.c620 int argc = (int)lua_tointeger(L, 1); in pmain()
H A Dlua.h397 #define lua_tointeger(L,i) lua_tointegerx(L,(i),NULL) macro
H A Dluac.c172 int argc=(int)lua_tointeger(L,1); in pmain()
H A Dlstrlib.c1201 lua_Integer n = lua_tointeger(L, arg); in addliteral()
/netbsd-src/sys/modules/luapmf/
H A Dluapmf.c50 pmf_system_shutdown(lua_tointeger(L, 1)); in system_shutdown()
/netbsd-src/sys/modules/examples/luareadhappy/
H A Dluareadhappy.c120 rv = lua_tointeger(sc.kL->L, -1); in check_happy()
/netbsd-src/lib/lua/gpio/
H A Dgpio.c115 req->gp_pin = (int)lua_tointeger(L, n); /* not 1 based! */ in gpio_get_pin()