| 498 | return 0; |
| 499 | } |
| 500 | static int Print(lua_State* L)LNOEXCEPT |
| 501 | { |
| 502 | int n = lua_gettop(L); |
| 503 | lua_getglobal(L, "tostring"); // ... f |
| 504 | lua_pushstring(L, ""); // ... f s |
| 505 | for (int i = 1; i <= n; i++) |
| 506 | { |
| 507 | if (i > 1) |
| 508 | { |
| 509 | lua_pushstring(L, "\t"); // ... f s s |
| 510 | lua_concat(L, 2); // ... f s |
| 511 | } |
| 512 | lua_pushvalue(L, -2); // ... f s f |
| 513 | lua_pushvalue(L, i); // ... f s f arg[i] |
| 514 | lua_call(L, 1, 1); // ... f s ret |
| 515 | const char* x = luaL_checkstring(L, -1); |
| 516 | lua_concat(L, 2); // ... f s |
| 517 | } |
| 518 | LINFO("脚本日志:%m", luaL_checkstring(L, -1)); |
| 519 | lua_pop(L, 2); |
| 520 | return 0; |
| 521 | } |
| 522 | static int LoadPack(lua_State* L)LNOEXCEPT |
| 523 | { |
| 524 | const char* p = luaL_checkstring(L, 1); |
nothing calls this directly
no outgoing calls
no test coverage detected