| 24554 | |
| 24555 | template <typename E> |
| 24556 | protected_function_result do_string(const string_view& code, const basic_environment<E>& env, const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) { |
| 24557 | detail::typical_chunk_name_t basechunkname = {}; |
| 24558 | const char* chunknametarget = detail::make_chunk_name(code, chunkname, basechunkname); |
| 24559 | load_status x = static_cast<load_status>(luaL_loadbufferx(L, code.data(), code.size(), chunknametarget, to_string(mode).c_str())); |
| 24560 | if (x != load_status::ok) { |
| 24561 | return protected_function_result(L, absolute_index(L, -1), 0, 1, static_cast<call_status>(x)); |
| 24562 | } |
| 24563 | stack_aligned_protected_function pf(L, -1); |
| 24564 | set_environment(env, pf); |
| 24565 | return pf(); |
| 24566 | } |
| 24567 | |
| 24568 | protected_function_result do_string(const string_view& code, const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) { |
| 24569 | detail::typical_chunk_name_t basechunkname = {}; |
nothing calls this directly
no test coverage detected