Skip to content
This repository was archived by the owner on Jan 8, 2022. It is now read-only.

Remove variadic args from the PROC callback types#4

Open
jackwakefield wants to merge 1 commit intoGoNZooo:masterfrom
jackwakefield:fix/remove-variadic-from-proc
Open

Remove variadic args from the PROC callback types#4
jackwakefield wants to merge 1 commit intoGoNZooo:masterfrom
jackwakefield:fix/remove-variadic-from-proc

Conversation

@jackwakefield
Copy link
Copy Markdown
Contributor

These changes are copied from lean_and_mean.zig

The main reason for doing this is for i386 builds, where Zig defines std.os.windows.WINAPI as Stdcall rather than C, and Zig doesn't support variadic args unless the calling convention is C.

I completely appreciate there could be a reason I'm missing as to why these are variadic though!

@GoNZooo
Copy link
Copy Markdown
Owner

GoNZooo commented Mar 24, 2021

I completely appreciate there could be a reason I'm missing as to why these are variadic though!

More than likely you are overestimating the amount of manual code that's written here. On top of that it's likely that Zig itself generates other code nowadays for the same thing.

Have you tried these changes out in practice?

P.S. I'm very sorry about the late reply.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants