Home
last modified time | relevance | path

Searched refs:raw_state (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/lutok/
H A Dc_gate_test.cpp41 lua_State* raw_state = luaL_newstate(); in ATF_TEST_CASE_BODY() local
42 ATF_REQUIRE(raw_state != NULL); in ATF_TEST_CASE_BODY()
45 lutok::state state = lutok::state_c_gate::connect(raw_state); in ATF_TEST_CASE_BODY()
50 ATF_REQUIRE_EQ(123, lua_tointeger(raw_state, -1)); in ATF_TEST_CASE_BODY()
52 lua_close(raw_state); in ATF_TEST_CASE_BODY()
63 lua_State* raw_state = gate.c_state(); in ATF_TEST_CASE_BODY() local
64 ATF_REQUIRE_EQ(5, lua_tointeger(raw_state, -1)); in ATF_TEST_CASE_BODY()
H A Dstate.cpp140 lua_State* raw_state) throw() in call_cxx_function_from_c() argument
145 lutok::state state = lutok::state_c_gate::connect(raw_state); in call_cxx_function_from_c()
158 return luaL_error(raw_state, "%s", error_buf); in call_cxx_function_from_c()
174 cxx_closure_trampoline(lua_State* raw_state) in cxx_closure_trampoline() argument
176 lutok::state state = lutok::state_c_gate::connect(raw_state); in cxx_closure_trampoline()
181 lua_getstack(raw_state, 0, &debug); in cxx_closure_trampoline()
182 lua_getinfo(raw_state, "u", &debug); in cxx_closure_trampoline()
188 return call_cxx_function_from_c(*function, raw_state); in cxx_closure_trampoline()
203 cxx_function_trampoline(lua_State* raw_state) in cxx_function_trampoline() argument
205 lutok::state state = lutok::state_c_gate::connect(raw_state); in cxx_function_trampoline()
[all …]
H A Dexceptions.cpp83 lua_State* raw_state = lutok::state_c_gate(state_).c_state(); in from_stack() local
85 assert(lua_isstring(raw_state, -1)); in from_stack()
86 const std::string message = lua_tostring(raw_state, -1); in from_stack()
87 lua_pop(raw_state, 1); in from_stack()
H A Dc_gate.cpp63 lutok::state_c_gate::connect(lua_State* raw_state) in connect() argument
65 return state(static_cast< void* >(raw_state)); in connect()
75 return static_cast< lua_State* >(_state.raw_state()); in c_state()
H A Ddebug.cpp69 lua_State* raw_state = state_c_gate(s).c_state(); in get_info() local
71 if (lua_getinfo(raw_state, what_.c_str(), &_pimpl->lua_debug) == 0) in get_info()
83 lua_State* raw_state = state_c_gate(s).c_state(); in get_stack() local
85 lua_getstack(raw_state, level, &_pimpl->lua_debug); in get_stack()
H A Dstate.hpp91 void* raw_state(void);
H A Dstate_test.cpp109 c_get_upvalues(lua_State* raw_state) in c_get_upvalues() argument
111 lutok::state state = lutok::state_c_gate::connect(raw_state); in c_get_upvalues()
112 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()
114 lua_pushinteger(raw_state, i1); in c_get_upvalues()
115 lua_pushinteger(raw_state, i2); in c_get_upvalues()