Re: [racket] FFI and varargs

2015-02-18 Thread Jon Zeppieri
Yes. You can't produce a single ctype that represents a vararg function, but you can create a wrapper that will produce (and call) a fixed-arity ffi wrapper, based on the number of actual parameters you pass it. See this example (using C's printf) by Eli Barzilay: [http://svn.plt-scheme.org/plt/tru

[racket] FFI and varargs

2015-02-18 Thread Bartosz Przygoda
Hello, Defining wrapper that will call a vararg function - is it doable? Racket Users list: http://lists.racket-lang.org/users