Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upuse ffi to handle C-varargs #22
Open
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
CPythonAPI is using varargs a lot.e.g.:
https://docs.python.org/2/c-api/arg.html
consider using
FFI(orgithub.com/gonuts/ffi) to marshal back and forth between C-varargs and Go-varargs-interface{}like is done in gopy:https://github.com/qur/gopy/blob/master/lib/utils.c#L25
https://github.com/qur/gopy/blob/master/lib/arg.go#L89