| 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) { |
nothing calls this directly
no test coverage detected