mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 15:34:09 +00:00
Expose function prototype via funcinfo()
This commit is contained in:
parent
c3cae04153
commit
b590e952fa
@ -199,6 +199,7 @@ LJLIB_CF(jit_util_funcinfo)
|
|||||||
lua_setfield(L, -2, "source");
|
lua_setfield(L, -2, "source");
|
||||||
lj_debug_pushloc(L, pt, pc);
|
lj_debug_pushloc(L, pt, pc);
|
||||||
lua_setfield(L, -2, "loc");
|
lua_setfield(L, -2, "loc");
|
||||||
|
setprotoV(L, lj_tab_setstr(L, t, lj_str_newlit(L, "proto")), pt);
|
||||||
} else {
|
} else {
|
||||||
GCfunc *fn = funcV(L->base);
|
GCfunc *fn = funcV(L->base);
|
||||||
GCtab *t;
|
GCtab *t;
|
||||||
|
Loading…
Reference in New Issue
Block a user