Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Lua_helper.callback_handler: return nil if the haxe function returned null #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marius851000
Copy link

currently, if the haxe function return null, then the stack used here (which appear to be different than the one used to register it, as the documentation say this one is emptied after return), then it read the last input argument.

With this, it instead return nothing (which then default to nil).

I do this for the reason exposed here: ShadowMario/FNF-PsychEngine#10737 (comment)

jbmagination added a commit to Funkin4RPlace/linc_luajit that referenced this pull request May 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants