File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -153,15 +153,18 @@ impl<'a> Debug<'a> {
153
153
154
154
/// Corresponds to the `t` "what" mask. Returns true if the hook is in a function tail call,
155
155
/// false otherwise.
156
- #[ cfg( not( feature = "luau" ) ) ]
157
- #[ cfg_attr( docsrs, doc( cfg( not( feature = "luau" ) ) ) ) ]
156
+ #[ cfg( any( feature = "lua54" , feature = "lua53" , feature = "lua52" ) ) ]
157
+ #[ cfg_attr(
158
+ docsrs,
159
+ doc( cfg( any( feature = "lua54" , feature = "lua53" , feature = "lua52" ) ) )
160
+ ) ]
158
161
pub fn is_tail_call ( & self ) -> bool {
159
162
unsafe {
160
163
mlua_assert ! (
161
164
ffi:: lua_getinfo( self . state, cstr!( "t" ) , self . ar) != 0 ,
162
165
"lua_getinfo failed with `t`"
163
166
) ;
164
- ( * self . ar ) . currentline != 0
167
+ ( * self . ar ) . istailcall != 0
165
168
}
166
169
}
167
170
You can’t perform that action at this time.
0 commit comments