Subject: [ruby-ffi] Re: How to declare (int *argc, char *argv)? |
From: przemo_li |
Date: 8/20/11 8:00 AM |
To: ruby-ffi |
I've read that :pointer can be used as output array of strings. (int * argc, char ** argv) Can I use :int, as output int parameter? [:int, :pointer] So resulats (if I can use :int) attache_function :glutInit, [:int, :pointer], :void Then how to change ARGV (array of strings) so it can be passed as :pointer? On 19 Sie, 15:38, przemo_li <an.prze...@gmail.com> wrote:
<an.prze...@gmail.com> wrote:Oh FGAPI and FGAPIENTRY have no meaning on Linux and I care only about Linux support. /* Non-Windows definition of FGAPI and FGAPIENTRY */ # define FGAPI # define FGAPIENTRY On Aug 19, 3:36 pm, przemo_liI'm trying to do my own bindings for freeGLUT, but fail at:
FGAPI void FGAPIENTRY glutInit( int* pargc, char** argv )
how to declare it with ruby ffi? Then how to pass argc, argv? (ruby seam to have no such thing)