excessive / excessive/lovr-haxe-wrappergen
[Graphics.hx] 'default' is a Haxe keyword, needs to be replaced to prevent compile errors
- Dominant language
- Haxe
- Stars
- 10
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
On line 86 of the generated Graphics.hx, the following line causes a compile failure in Haxe:
``@:overload(function (default: DefaultShader, ?options: lua.Table): Shader {})``
``default`` is a reserved keyword to describe getter/setter behavior and switch statement fallback in Haxe. Easiest solution to this would be to generate a different argument name, changing it to ``_default`` solved the issue for me.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the generated Graphics.hx file at line 86 and identify the generator entry point that produces this overload. Reproduce the Haxe compile failure, then verify that regeneration uses a non-reserved argument name such as _default and that the generated binding compiles successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100