This pr ties up a couple of lose ends in prep for RC1. One major issue we had was LuaCallableCustom's only worked in module builds since GDExtension does not expose access to CallableCustom's. In this PR we worked around that by adding a call_function_ref method to LuaAPI. This method is not meant to be called directly, but rather when pulling a function from lua we binding its reference and return that Callable to the user. In which case the only argument would be the Array of args. This should bring the Module and GDExtensions API's to a 1:1 compatibility.
This PR also changes permissive default to true in order to stay closer to the functionality that existed before that change.
And finally there was also some small cleanup tasks that have been completed.
This pr ties up a couple of lose ends in prep for RC1. One major issue we had was LuaCallableCustom's only worked in module builds since GDExtension does not expose access to CallableCustom's. In this PR we worked around that by adding a call_function_ref method to LuaAPI. This method is not meant to be called directly, but rather when pulling a function from lua we binding its reference and return that Callable to the user. In which case the only argument would be the Array of args. This should bring the Module and GDExtensions API's to a 1:1 compatibility.
This PR also changes permissive default to true in order to stay closer to the functionality that existed before that change.
And finally there was also some small cleanup tasks that have been completed.