| 25242 | } |
| 25243 | |
| 25244 | object require_script(const std::string& key, const string_view& code, bool create_global = true, |
| 25245 | const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) { |
| 25246 | auto action = [this, &code, &chunkname, &mode]() { stack::script(L, code, chunkname, mode); }; |
| 25247 | return require_core(key, action, create_global); |
| 25248 | } |
| 25249 | |
| 25250 | object require_file(const std::string& key, const std::string& filename, bool create_global = true, load_mode mode = load_mode::any) { |
| 25251 | auto action = [this, &filename, &mode]() { stack::script_file(L, filename, mode); }; |