Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save methodmissing/172899 to your computer and use it in GitHub Desktop.
static void mark_callback(RCallback* cb)
{
rb_gc_mark(cb->object);
}
static void free_callback(RCallback* cb)
{
xfree(cb);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment