-
Assuming a Lua closure is the very first thing ever pushed to the stack, and I clone it before making the first resume, is there a way to reset the thread and restart it after it errors? Do I have to use a C function that contains a pcall or can I manually reset things when |
Beta Was this translation helpful? Give feedback.
Answered by
zeux
Oct 18, 2022
Replies: 1 comment 3 replies
-
You're probably looking for lua_resetthread. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
LoganDark
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're probably looking for lua_resetthread.