| 679 | } |
| 680 | |
| 681 | static void console_command_REPL(ConsoleServer &cs, u32 client_id, const char *json, void *user_data) |
| 682 | { |
| 683 | CE_UNUSED_2(cs, client_id); |
| 684 | TempAllocator1024 ta; |
| 685 | JsonObject obj(ta); |
| 686 | DynamicString script(default_allocator()); |
| 687 | |
| 688 | sjson::parse(obj, json); |
| 689 | sjson::parse_verbatim(script, obj["repl"]); |
| 690 | |
| 691 | do_REPL((LuaEnvironment *)user_data, script.c_str()); |
| 692 | } |
| 693 | |
| 694 | static bool is_lua_identifier(const char *str) |
| 695 | { |
nothing calls this directly
no test coverage detected