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

/freebsd-current/contrib/lutok/
H A Dc_gate.cpp59 /// \param raw_state The raw state to wrap temporarily.
63 lutok::state_c_gate::connect(lua_State* raw_state) argument
65 return state(static_cast< void* >(raw_state));
75 return static_cast< lua_State* >(_state.raw_state());
H A Dc_gate_test.cpp41 lua_State* raw_state = luaL_newstate(); local
42 ATF_REQUIRE(raw_state != NULL);
45 lutok::state state = lutok::state_c_gate::connect(raw_state);
50 ATF_REQUIRE_EQ(123, lua_tointeger(raw_state, -1));
52 lua_close(raw_state);
63 lua_State* raw_state = gate.c_state(); local
64 ATF_REQUIRE_EQ(5, lua_tointeger(raw_state, -1));
H A Dexceptions.cpp83 lua_State* raw_state = lutok::state_c_gate(state_).c_state(); local
85 assert(lua_isstring(raw_state, -1));
86 const std::string message = lua_tostring(raw_state, -1);
87 lua_pop(raw_state, 1);
H A Ddebug.cpp69 lua_State* raw_state = state_c_gate(s).c_state(); local
71 if (lua_getinfo(raw_state, what_.c_str(), &_pimpl->lua_debug) == 0)
83 lua_State* raw_state = state_c_gate(s).c_state(); local
85 lua_getstack(raw_state, level, &_pimpl->lua_debug);
H A Dstate.cpp134 /// \param raw_state The raw Lua state.
140 lua_State* raw_state) throw()
145 lutok::state state = lutok::state_c_gate::connect(raw_state);
158 return luaL_error(raw_state, "%s", error_buf);
170 /// \param raw_state The Lua C API state.
174 cxx_closure_trampoline(lua_State* raw_state) argument
176 lutok::state state = lutok::state_c_gate::connect(raw_state);
181 lua_getstack(raw_state, 0, &debug);
182 lua_getinfo(raw_state, "u", &debug);
188 return call_cxx_function_from_c(*function, raw_state);
139 call_cxx_function_from_c(lutok::cxx_function function, lua_State* raw_state) argument
203 cxx_function_trampoline(lua_State* raw_state) argument
901 lutok::state::raw_state(void) function in class:lutok::state
[all...]
H A Dstate.hpp91 void* raw_state(void);
H A Dstate_test.cpp105 /// \param raw_state The raw Lua state.
109 c_get_upvalues(lua_State* raw_state) argument
111 lutok::state state = lutok::state_c_gate::connect(raw_state);
112 const int i1 = lua_tointeger(raw_state, state.upvalue_index(1));
113 const int i2 = lua_tointeger(raw_state, state.upvalue_index(2));
114 lua_pushinteger(raw_state, i1);
115 lua_pushinteger(raw_state, i2);

Completed in 179 milliseconds