From: Brian Candler Date: 2009-08-27T04:10:36+09:00 Subject: Re: Help with C embedding Khat Harr wrote: > I'm using gcc to compile and it doesn't have a problem with the variadic > cast Probably best just to copy what Ruby does. [defines.h] #ifdef __cplusplus #define ANYARGS ... #else #define ANYARGS #endif [ruby.h] void rb_define_module_function _((VALUE,const char*,VALUE(*)(ANYARGS),int)); [class.c uses K&R prototypes :-(] void rb_define_module_function(module, name, func, argc) VALUE module; const char *name; VALUE (*func)(); int argc; -- Posted via http://www.ruby-forum.com/.