Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Graphics.hx] 'default' is a Haxe keyword, needs to be replaced to prevent compile errors #5

Open
kevansevans opened this issue Aug 5, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@kevansevans
Copy link

On line 86 of the generated Graphics.hx, the following line causes a compile failure in Haxe:

@:overload(function (default: DefaultShader, ?options: lua.Table<Dynamic, Dynamic>): 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.

@shakesoda shakesoda added the bug Something isn't working label Aug 5, 2020
@shakesoda
Copy link
Member

yeah, there are a few things that manually need to be fixed in the output right now. i've ended up with manually maintained bindings based on the generated ones for a while... need to do some updates here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants