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

Update gen_nim.py #858

Closed
wants to merge 3 commits into from
Closed

Update gen_nim.py #858

wants to merge 3 commits into from

Conversation

Angluca
Copy link
Contributor

@Angluca Angluca commented Jul 11, 2023

c: int uint = nim: int uint = x64:8byte, x32:4byte
c: type * = nim: ptr type or pointer = c:null, nim=nil
nim use byte or uint8 instead char not use char type name now,
But have cchar because is c type.

c: int uint = nim: int uint = x64:8byte, x32:4byte
c: x * = nim: ptr\/pointer = c:null, nim=nil
nim use byte or uint8 instead char type not use char type now , But have cchar because is c type.
@Angluca
Copy link
Contributor Author

Angluca commented Jul 11, 2023

I've change sokol-nim example/noninterleaved.nim

@floooh
Copy link
Owner

floooh commented Jul 11, 2023

Hmm are these changes required because the most recent nim dev version breaks now? (or are they optional and just "nice to have")

I'd rather wait until nim stabilizes again to reduce the frequency of necessary updates to the bindings (I'm starting to think that the unsafeAddr => addr change was probably a bit too hasty, because it forces people to move from the stable version to the dev version).

@Angluca
Copy link
Contributor Author

Angluca commented Jul 12, 2023

Nim will upgrade to stable v2.0 ( v1.6.x current now ) within the year.
There's a lot of changes and more new func in the new version
Things that will be dropped in the new version
Personally, I think it's best to change things in advance,
Because it's a lot of work to change things when you're have ( <= v1.6 ) project.

# These all version support ( v1.6 is use byte not char type name )
c: int uint = nim: int uint = x64:8byte, x32:4byte
c: type * = nim: ptr type or pointer = c:null, nim=nil
nim use byte or uint8 instead char not use char type name now,
But have cchar because is c type.

@Angluca Angluca closed this Dec 12, 2023
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.

2 participants