| 214 | } |
| 215 | |
| 216 | object require_script(const std::string& key, const string_view& code, bool create_global = true, |
| 217 | const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) { |
| 218 | auto action = [this, &code, &chunkname, &mode]() { stack::script(L, code, chunkname, mode); }; |
| 219 | return require_core(key, action, create_global); |
| 220 | } |
| 221 | |
| 222 | object require_file(const std::string& key, const std::string& filename, bool create_global = true, load_mode mode = load_mode::any) { |
| 223 | auto action = [this, &filename, &mode]() { stack::script_file(L, filename, mode); }; |