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

Add a va_arg intrinsic #1455

Closed
mahkoh opened this issue Jan 9, 2016 · 3 comments
Closed

Add a va_arg intrinsic #1455

mahkoh opened this issue Jan 9, 2016 · 3 comments
Labels
T-lang Relevant to the language team, which will review and decide on the RFC. T-libs-api Relevant to the library API team, which will review and decide on the RFC.

Comments

@mahkoh
Copy link
Contributor

mahkoh commented Jan 9, 2016

fn va_arg<T>(va_list: *mut u8) -> T;

translates to

va_arg i8* va_list, T

This is useful for C interop. va_arg can theoretically be implemented in user code but that's a lot of work.

@mahkoh
Copy link
Contributor Author

mahkoh commented Jan 9, 2016

It's not possible to implement this in user code without some kind of reflection/type information.

@nrc nrc added T-lang Relevant to the language team, which will review and decide on the RFC. T-libs-api Relevant to the library API team, which will review and decide on the RFC. labels Aug 18, 2016
@fstirlitz
Copy link

I believe #2137 addresses this.

@Centril
Copy link
Contributor

Centril commented Oct 7, 2018

Closing in favor of rust-lang/rust#44930.

@Centril Centril closed this as completed Oct 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-lang Relevant to the language team, which will review and decide on the RFC. T-libs-api Relevant to the library API team, which will review and decide on the RFC.
Projects
None yet
Development

No branches or pull requests

4 participants