MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / do_reader

Method do_reader

Libs/sol/sol.hpp:25319–25330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25317
25318 template <typename E>
25319 protected_function_result do_reader(lua_Reader reader, void* data, const basic_environment<E>& env,
25320 const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) {
25321 detail::typical_chunk_name_t basechunkname = {};
25322 const char* chunknametarget = detail::make_chunk_name("lua_Reader", chunkname, basechunkname);
25323 load_status x = static_cast<load_status>(lua_load(L, reader, data, chunknametarget, to_string(mode).c_str()));
25324 if (x != load_status::ok) {
25325 return protected_function_result(L, absolute_index(L, -1), 0, 1, static_cast<call_status>(x));
25326 }
25327 stack_aligned_protected_function pf(L, -1);
25328 set_environment(env, pf);
25329 return pf();
25330 }
25331
25332 protected_function_result do_reader(
25333 lua_Reader reader, void* data, const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) {

Callers

nothing calls this directly

Calls 7

make_chunk_nameFunction · 0.85
lua_loadFunction · 0.85
to_stringFunction · 0.85
absolute_indexClass · 0.85
set_environmentFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected