mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-10 03:40:29 +00:00
Update script prefix for consistency and better debugging support
This commit is contained in:
parent
b535937fca
commit
9c85951fe2
1 changed files with 2 additions and 2 deletions
|
@ -4946,8 +4946,8 @@ static bool LuaRunAsset(const char *path, bool mandatory) {
|
||||||
effectivepath.p = path;
|
effectivepath.p = path;
|
||||||
effectivepath.n = pathlen;
|
effectivepath.n = pathlen;
|
||||||
DEBUGF("(lua) LuaRunAsset(%`'s)", path);
|
DEBUGF("(lua) LuaRunAsset(%`'s)", path);
|
||||||
status =
|
status = luaL_loadbuffer(L, code, codelen,
|
||||||
luaL_loadbuffer(L, code, codelen, FreeLater(xasprintf("@%s", path)));
|
FreeLater(xasprintf("@%s%s", a->file ? "" : "/zip", path)));
|
||||||
if (status != LUA_OK || LuaCallWithTrace(L, 0, 0, NULL) != LUA_OK) {
|
if (status != LUA_OK || LuaCallWithTrace(L, 0, 0, NULL) != LUA_OK) {
|
||||||
LogLuaError("lua code", lua_tostring(L, -1));
|
LogLuaError("lua code", lua_tostring(L, -1));
|
||||||
lua_pop(L, 1); // pop error
|
lua_pop(L, 1); // pop error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue