summaryrefslogtreecommitdiff
path: root/src/lib_base.c
diff options
context:
space:
mode:
authorMike Pall <mike>2012-10-01 20:45:30 +0200
committerMike Pall <mike>2012-10-01 20:45:30 +0200
commitfcddd5a3a0269f30df0c0da6e9ff89d3e70d0e2c (patch)
tree4bce654a35af804e16eb55324aa92f9ab550a984 /src/lib_base.c
parent3ad61689cf11ae73fef5dfe12f7ccb5fe539622e (diff)
downloadluajit-fcddd5a3a0269f30df0c0da6e9ff89d3e70d0e2c.tar.gz
luajit-fcddd5a3a0269f30df0c0da6e9ff89d3e70d0e2c.tar.bz2
luajit-fcddd5a3a0269f30df0c0da6e9ff89d3e70d0e2c.zip
From Lua 5.2: Add luaL_traceback().
Diffstat (limited to 'src/lib_base.c')
-rw-r--r--src/lib_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib_base.c b/src/lib_base.c
index 6f664eb6..568216e1 100644
--- a/src/lib_base.c
+++ b/src/lib_base.c
@@ -320,7 +320,7 @@ LJLIB_ASM(tostring) LJLIB_REC(.)
320 s = strV(lj_lib_upvalue(L, -(int32_t)itype(o))); 320 s = strV(lj_lib_upvalue(L, -(int32_t)itype(o)));
321 } else { 321 } else {
322 if (tvisfunc(o) && isffunc(funcV(o))) 322 if (tvisfunc(o) && isffunc(funcV(o)))
323 lua_pushfstring(L, "function: fast#%d", funcV(o)->c.ffid); 323 lua_pushfstring(L, "function: builtin#%d", funcV(o)->c.ffid);
324 else 324 else
325 lua_pushfstring(L, "%s: %p", lj_typename(o), lua_topointer(L, 1)); 325 lua_pushfstring(L, "%s: %p", lj_typename(o), lua_topointer(L, 1));
326 /* Note: lua_pushfstring calls the GC which may invalidate o. */ 326 /* Note: lua_pushfstring calls the GC which may invalidate o. */