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.
Debug::is_tail_call
1 parent d011a1f commit cf05593Copy full SHA for cf05593
1 file changed
src/debug.rs
@@ -153,15 +153,18 @@ impl<'a> Debug<'a> {
153
154
/// Corresponds to the `t` "what" mask. Returns true if the hook is in a function tail call,
155
/// false otherwise.
156
- #[cfg(not(feature = "luau"))]
157
- #[cfg_attr(docsrs, doc(cfg(not(feature = "luau"))))]
+ #[cfg(any(feature = "lua54", feature = "lua53", feature = "lua52"))]
+ #[cfg_attr(
158
+ docsrs,
159
+ doc(cfg(any(feature = "lua54", feature = "lua53", feature = "lua52")))
160
+ )]
161
pub fn is_tail_call(&self) -> bool {
162
unsafe {
163
mlua_assert!(
164
ffi::lua_getinfo(self.state, cstr!("t"), self.ar) != 0,
165
"lua_getinfo failed with `t`"
166
);
- (*self.ar).currentline != 0
167
+ (*self.ar).istailcall != 0
168
}
169
170
0 commit comments