Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upCorrode doesn't handle varargs functions #142
Comments
This comment has been minimized.
This comment has been minimized.
|
This is with corrode as of 84c6d7b |
This comment has been minimized.
This comment has been minimized.
|
Thanks for trying Corrode! This is because Rust doesn't support defining varargs functions. I haven't been able to think of any workable translation for this yet. |
This comment has been minimized.
This comment has been minimized.
|
So, unfortuantely the only way is to scan the function and look for uses of |
This comment has been minimized.
This comment has been minimized.
xfix
commented
Jul 18, 2017
•
|
It's currently not possible to represent C varargs function in Rust. The problem isn't really recognizing varargs functions, but making them actually work and possible to call from C. |
palfrey commentedApr 12, 2017
I was trying to convert ashuffle and got as far as https://github.com/joshkunz/ashuffle/blob/master/src/args.c#L20 before