Home
last modified time | relevance | path

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

/minix3/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()
/minix3/external/mit/lua/dist/src/
H A Dlmathlib.c43 lua_Integer n = lua_tointeger(L, 1); in math_abs()
131 lua_Integer d = lua_tointeger(L, 2); in math_fmod()
137 lua_pushinteger(L, lua_tointeger(L, 1) % d); in math_fmod()
H A Dlutf8lib.c208 lua_Integer n = lua_tointeger(L, 2) - 1; in iter_aux()
H A Dliolib.c572 int n = (int)lua_tointeger(L, lua_upvalueindex(2)); in io_readline()
607 ? fprintf(f, LUA_INTEGER_FMT, lua_tointeger(L, arg)) in g_write()
H A Dlauxlib.c553 ref = (int)lua_tointeger(L, -1); /* ref = t[freelist] */ in luaL_ref()
767 lua_pushfstring(L, "%I", lua_tointeger(L, idx)); in luaL_tolstring()
H A Dluac.c169 int argc=(int)lua_tointeger(L,1); in pmain()
H A Dlua.c558 int argc = (int)lua_tointeger(L, 1); in pmain()
H A Dlua.h375 #define lua_tointeger(L,i) lua_tointegerx(L,(i),NULL) macro
H A Dlstrlib.c664 for (src = s + (size_t)lua_tointeger(L, lua_upvalueindex(3)); in gmatch_aux()
/minix3/lib/lua/gpio/
H A Dgpio.c115 req->gp_pin = (int)lua_tointeger(L, n); /* not 1 based! */ in gpio_get_pin()