Subject:
[ruby-ffi] Re: Basic question about types
From:
Gimi
Date:
10/20/09 9:57 AM
To:
ruby-ffi


Hi, it's me again : )

I just wanna ask one more question, how to deal with the va_list
parameter? Like the vprintf method, how to attach and call it?

With many thanks!
Gimi

On Oct 20, 10:10 am, Gimi <liang.g...@gmail.com> wrote:
> Hi all,
>
> I'm new to FFI, and I have a basic question about types. Assume there
> is some C code like this:
> # -- C code begin --
> #if some situation
> typedef sometype unsignedint
> #else
> typedef sometype int
> #endif
>
> void some_function(sometype);
> #-- C code end --
>
> So I mean when the types of parameters of a function are different in
> different situations, how do I write the Ruby code?
>
> Any help will be greatly appreciated.
>
> Regards,