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

Generated file for variadic functions is incorrect. #13

Open
fake-name opened this issue Jul 22, 2017 · 0 comments
Open

Generated file for variadic functions is incorrect. #13

fake-name opened this issue Jul 22, 2017 · 0 comments

Comments

@fake-name
Copy link

fake-name commented Jul 22, 2017

Basically, I'm trying to wrap a file with some functions that have variadic parameters:

AMQP_PUBLIC_FUNCTION
amqp_rpc_reply_t
AMQP_CALL amqp_login(amqp_connection_state_t state, char const *vhost,
                     int channel_max, int frame_max, int heartbeat,
                     amqp_sasl_method_enum sasl_method, ...);

However, the generated code fails to expose the variadic nature of the calls:

amqp_rpc_reply_t amqp_login(amqp_connection_state_t state, char* vhost, 
                        int channel_max, int frame_max, int heartbeat, 
                        amqp_sasl_method_enum sasl_method)

(I added line breaks for readability)

At the moment, I just manually added , ..., but that's somewhat sub-optimal.

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

No branches or pull requests

1 participant