Skip to content

Instantly share code, notes, and snippets.

@chuckremes
Created March 17, 2010 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuckremes/335225 to your computer and use it in GitHub Desktop.
Save chuckremes/335225 to your computer and use it in GitHub Desktop.
/*
* Rules for better ruby C extensions:
*
* Never use the R<TYPE> macros directly, always use R<TYPE>_<FIELD>
*
* Never compare with RBASIC(obj)->klass, always use
* rb_obj_is_instance_of()
*
* Never use RHASH(obj)->tbl or RHASH_TBL().
*
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment