Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created August 5, 2009 09:57
Show Gist options
  • Select an option

  • Save methodmissing/162615 to your computer and use it in GitHub Desktop.

Select an option

Save methodmissing/162615 to your computer and use it in GitHub Desktop.
VALUE
#ifdef HAVE_STDARG_PROTOTYPES
rb_funcall(VALUE recv, ID mid, int n, ...)
#else
rb_funcall(recv, mid, n, va_alist)
VALUE recv;
ID mid;
int n;
va_dcl
#endif
{
va_list ar;
va_init_list(ar, n);
return vafuncall(recv, mid, n, &ar);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment