Lines Matching refs:lutok
139 call_cxx_function_from_c(lutok::cxx_function function,
145 lutok::state state = lutok::state_c_gate::connect(raw_state);
176 lutok::state state = lutok::state_c_gate::connect(raw_state);
186 lutok::cxx_function* function = state.to_userdata< lutok::cxx_function >(
205 lutok::state state = lutok::state_c_gate::connect(raw_state);
206 lutok::cxx_function* function = state.to_userdata< lutok::cxx_function >(
215 const int lutok::registry_index = LUA_REGISTRYINDEX;
218 /// Internal implementation for lutok::state.
219 struct lutok::state::impl {
242 lutok::state::state(void)
246 throw lutok::error("lua open failed");
257 lutok::state::state(void* raw_state_) :
268 lutok::state::~state(void)
284 lutok::state::close(void)
302 lutok::state::get_global(const std::string& name)
307 throw lutok::api_error::from_stack(*this, "lua_getglobal");
318 lutok::state::get_global_table(void)
341 lutok::state::get_metafield(const int index, const std::string& name)
353 lutok::state::get_metatable(const int index)
368 lutok::state::get_table(const int index)
375 throw lutok::api_error::from_stack(*this, "lua_gettable");
384 lutok::state::get_top(void)
394 lutok::state::insert(const int index)
406 lutok::state::is_boolean(const int index)
418 lutok::state::is_function(const int index)
430 lutok::state::is_nil(const int index)
442 lutok::state::is_number(const int index)
454 lutok::state::is_string(const int index)
466 lutok::state::is_table(const int index)
478 lutok::state::is_userdata(const int index)
493 lutok::state::load_file(const std::string& file)
496 throw lutok::file_not_found_error(file);
498 throw lutok::api_error::from_stack(*this, "luaL_loadfile");
510 lutok::state::load_string(const std::string& str)
513 throw lutok::api_error::from_stack(*this, "luaL_loadstring");
521 lutok::state::new_table(void)
538 lutok::state::new_userdata_voidp(const size_t size)
552 lutok::state::next(const int index)
560 throw lutok::api_error::from_stack(*this, "lua_next");
577 lutok::state::open_base(void)
581 throw lutok::api_error::from_stack(*this, "luaopen_base");
591 lutok::state::open_string(void)
599 throw lutok::api_error::from_stack(*this, "luaopen_string");
610 lutok::state::open_table(void)
618 throw lutok::api_error::from_stack(*this, "luaopen_table");
631 lutok::state::pcall(const int nargs, const int nresults, const int errfunc)
634 throw lutok::api_error::from_stack(*this, "lua_pcall");
642 lutok::state::pop(const int count)
654 lutok::state::push_boolean(const bool value)
668 lutok::state::push_cxx_closure(cxx_function function, const int nvalues)
684 lutok::state::push_cxx_function(cxx_function function)
697 lutok::state::push_integer(const int value)
705 lutok::state::push_nil(void)
717 lutok::state::push_string(const std::string& str)
727 lutok::state::push_value(const int index)
737 lutok::state::raw_get(const int index)
750 lutok::state::raw_set(const int index)
765 lutok::state::set_global(const std::string& name)
771 throw lutok::api_error::from_stack(*this, "lua_setglobal");
780 lutok::state::set_metatable(const int index)
795 lutok::state::set_table(const int index)
802 throw lutok::api_error::from_stack(*this, "lua_settable");
813 lutok::state::to_boolean(const int index)
826 lutok::state::to_integer(const int index)
844 lutok::state::to_userdata_voidp(const int index)
859 lutok::state::to_string(const int index)
876 lutok::state::upvalue_index(const int index)
889 lutok::state::raw_state(void)