Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save methodmissing/172890 to your computer and use it in GitHub Desktop.
#define ROBJECT_EMBED_LEN_MAX 3
struct RObject {
struct RBasic basic;
union {
struct {
long numiv;
VALUE *ivptr;
struct st_table *iv_index_tbl; /* shortcut for RCLASS_IV_INDEX_TBL(rb_obj_class(obj)) */
} heap;
VALUE ary[ROBJECT_EMBED_LEN_MAX];
} as;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment