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

Using const for local variables that are never mutated #47

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

abhirag
Copy link
Contributor

@abhirag abhirag commented Nov 30, 2023

Unnecessary use of var is a compile time error now (reference compiler PR)

@geooot
Copy link
Contributor

geooot commented Dec 1, 2023

For debugtext.zig it might be better to make a PR to update the codegen in the main sokol repo.

https://github.com/floooh/sokol/blob/master/bindgen/gen_zig.py#L500

Changing the build.zig and the example here is completely valid tho

@abhirag
Copy link
Contributor Author

abhirag commented Dec 1, 2023

@geooot thanks a lot for the code ref :)
I'll make a change in main sokol repo, test and raise that PR too.

@abhirag
Copy link
Contributor Author

abhirag commented Dec 1, 2023

Sokol PR floooh/sokol#948

@floooh
Copy link
Owner

floooh commented Dec 3, 2023

Ah, this PR now has conflicts after I merged the Android PR by @geooot, can you fix those? It looks quite trivial to resolve.

@abhirag
Copy link
Contributor Author

abhirag commented Dec 3, 2023

resolved conflicts

@floooh floooh mentioned this pull request Dec 4, 2023
@floooh floooh merged commit d197056 into floooh:master Dec 4, 2023
3 checks passed
@floooh
Copy link
Owner

floooh commented Dec 4, 2023

...and merged. Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants