| 24447 | } |
| 24448 | |
| 24449 | object require(const std::string& key, lua_CFunction open_function, bool create_global = true) { |
| 24450 | luaL_requiref(L, key.c_str(), open_function, create_global ? 1 : 0); |
| 24451 | return stack::pop<object>(L); |
| 24452 | } |
| 24453 | |
| 24454 | object require_script(const std::string& key, const string_view& code, bool create_global = true, const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) { |
| 24455 | auto action = [this, &code, &chunkname, &mode]() { |
nothing calls this directly
no test coverage detected