diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1733,6 +1733,11 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) { | |||
1733 | int nres; | 1733 | int nres; |
1734 | status = lua_resume(lua_tothread(L1, i), L, getnum, &nres); | 1734 | status = lua_resume(lua_tothread(L1, i), L, getnum, &nres); |
1735 | } | 1735 | } |
1736 | else if EQ("traceback") { | ||
1737 | const char *msg = getstring; | ||
1738 | int level = getnum; | ||
1739 | luaL_traceback(L1, L1, msg, level); | ||
1740 | } | ||
1736 | else if EQ("return") { | 1741 | else if EQ("return") { |
1737 | int n = getnum; | 1742 | int n = getnum; |
1738 | if (L1 != L) { | 1743 | if (L1 != L) { |