Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created August 22, 2009 18:04
Show Gist options
  • Select an option

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

Select an option

Save methodmissing/172900 to your computer and use it in GitHub Desktop.
static VALUE
callback_alloc( VALUE klass )
{
VALUE cb;
RCallback* cbs;
cb = Data_Make_Struct(klass, RCallback, mark_callback, free_callback, cbs);
cbs->object = Qnil;
cbs->method = 0;
return cb;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment