diff options
author | Li Jin <dragon-fly@qq.com> | 2022-08-25 11:24:10 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-08-26 10:10:19 +0800 |
commit | df85ad2e7f975026ca1e6bd84b26fff81c8d99c8 (patch) | |
tree | 2b9300041c291382b15da3c354de3640a1498c1b /src/3rdParty/lua/ldebug.c | |
parent | 2f497477c984e576e9ba7e8f6cb92ee9f794e56b (diff) | |
download | yuescript-df85ad2e7f975026ca1e6bd84b26fff81c8d99c8.tar.gz yuescript-df85ad2e7f975026ca1e6bd84b26fff81c8d99c8.tar.bz2 yuescript-df85ad2e7f975026ca1e6bd84b26fff81c8d99c8.zip |
update to Lua 5.4.5.
Diffstat (limited to 'src/3rdParty/lua/ldebug.c')
-rw-r--r-- | src/3rdParty/lua/ldebug.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/3rdParty/lua/ldebug.c b/src/3rdParty/lua/ldebug.c index a716d95..fa15eaf 100644 --- a/src/3rdParty/lua/ldebug.c +++ b/src/3rdParty/lua/ldebug.c | |||
@@ -824,8 +824,11 @@ l_noret luaG_runerror (lua_State *L, const char *fmt, ...) { | |||
824 | va_start(argp, fmt); | 824 | va_start(argp, fmt); |
825 | msg = luaO_pushvfstring(L, fmt, argp); /* format message */ | 825 | msg = luaO_pushvfstring(L, fmt, argp); /* format message */ |
826 | va_end(argp); | 826 | va_end(argp); |
827 | if (isLua(ci)) /* if Lua function, add source:line information */ | 827 | if (isLua(ci)) { /* if Lua function, add source:line information */ |
828 | luaG_addinfo(L, msg, ci_func(ci)->p->source, getcurrentline(ci)); | 828 | luaG_addinfo(L, msg, ci_func(ci)->p->source, getcurrentline(ci)); |
829 | setobjs2s(L, L->top - 2, L->top - 1); /* remove 'msg' from the stack */ | ||
830 | L->top--; | ||
831 | } | ||
829 | luaG_errormsg(L); | 832 | luaG_errormsg(L); |
830 | } | 833 | } |
831 | 834 | ||