We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lua_remove
1 parent 0619f26 commit f2fd010Copy full SHA for f2fd010
mlua-sys/src/luau/compat.rs
@@ -85,6 +85,7 @@ unsafe fn compat53_pushfuncname(L: *mut lua_State, L1: *mut lua_State, level: c_
85
lua_pushfstring(L, cstr!("function '%s'"), (*ar).name);
86
} else if compat53_pushglobalfuncname(L, L1, level, ar) != 0 {
87
lua_pushfstring(L, cstr!("function '%s'"), lua_tostring(L, -1));
88
+ lua_remove(L, -2); // remove name
89
} else if *(*ar).what != b'C' as c_char {
90
// for Lua functions, use <file:line>
91
lua_pushfstring(L, cstr!("function <%s:%d>"), (*ar).short_src, (*ar).linedefined);
0 commit comments