MCPcopy Create free account
hub / github.com/crownengine/crown / console_command_REPL

Function console_command_REPL

src/lua/lua_environment.cpp:681–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679}
680
681static 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
694static bool is_lua_identifier(const char *str)
695{

Callers

nothing calls this directly

Calls 4

parse_verbatimFunction · 0.85
do_REPLFunction · 0.85
parseFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected