utopia-rise / godot-kotlin-jvm

Godot Kotlin JVM Module
MIT License
576 stars 39 forks source link

Increase MAX_FUNCTION_ARG_COUNT to 16. #515

Closed CedNaru closed 10 months ago

CedNaru commented 10 months ago

Some API methods couldn't be called because they exceeded the maximal amount of arguments we support. I added a sanity check in the api generator to detect when such cases happen. The theorical maximal number of arguments in Godot in unlimited since version 4. The practical maximal number to date in 4.1.2 is 14 arguments. I increased the limit to 16, to keep it a power of 2 and give us a bit of leeway.

piiertho commented 10 months ago

This misses change of constant in constraints.h

Ah never mind, did not see it