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

langref: document extern variadic functions #13902

Merged

Conversation

perillo
Copy link
Contributor

@perillo perillo commented Dec 12, 2022

Add a new subsection within the C section, documenting extern variadic functions.

try testing.expect(@typeInfo(@TypeOf(printf)).Fn.is_var_args);
}
{#code_end#}
<p>Non extern variadic functions are not allowed.</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-extern variadic functions are an accepted proposal #515

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was aware of #515; do you think that I should add a link to the issue?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't say that they are not allowed, linking the issue and saying it hasn't been implemented would be better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

By the way: is it correct to do a git commit --amend followed by git push --force-with-lease ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but you can also just push more commits if you want and then the PR can be squash merged.

Add a new subsection within the C section, documenting extern variadic
functions.
@perillo perillo force-pushed the langref-document-variadic-functions branch from a5617b0 to 9996dc3 Compare December 12, 2022 14:40
@andrewrk andrewrk merged commit 35c6fe6 into ziglang:master Dec 13, 2022
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