Skip to content

set_hook not available with luau feature? #227

Answered by khvzak
jqnatividad asked this question in Q&A
Discussion options

You must be logged in to vote

set_hook indeed is not available for Luau, because Luau (for performance reasons) does not support it :)
More details here: https://luau-lang.org/performance#epsilon-overhead-debugger

Instead, mlua supports interrupts which is Luau only feature, similar to hooks.
Currently callback function does not has &Lua argument but I plan to add it on the v0.9 release.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jqnatividad
Comment options

@khvzak
Comment options

Answer selected by jqnatividad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants