mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-04-15 12:18:52 +00:00
Improve redbean ZeroBrane integration (#451)
This commit is contained in:
parent
f6dab99f44
commit
b4e9a77e74
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
Reference in a new issue