Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created August 22, 2009 17:57
Show Gist options
  • Select an option

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

Select an option

Save methodmissing/172895 to your computer and use it in GitHub Desktop.
typedef struct {
VALUE object;
ID method;
} RCallback;
#define GetCallbackStruct(obj) (Check_Type(obj, T_DATA), (RCallback*)DATA_PTR(obj))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment