Created
March 17, 2010 13:38
-
-
Save chuckremes/335225 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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