MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / run_compile_script

Function run_compile_script

src/Chain/libraries/glua/single_glua_src/main.cpp:503–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503static int run_compile_script(lua_State *L, char **argv, int script)
504{
505 const char *fname = argv[script];
506 boost::filesystem::path filepath(fname);
507 std::string out_path = std::string(fname) + ".out";
508 char error[LUA_VM_EXCEPTION_STRNG_MAX_LENGTH] = "\0";
509 auto result = thinkyoung::lua::lib::compilefile_to_file(fname, out_path.c_str(), error, true);
510 if (strlen(error) > 0)
511 {
512 perror(error);
513 }
514 return LUA_OK;
515}
516
517static int run_disassemble_script(lua_State *L, char **argv, int script)
518{

Callers 1

pmainFunction · 0.85

Calls 3

compilefile_to_fileFunction · 0.85
stringClass · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected