Skip to content

Instantly share code, notes, and snippets.

@brianmario
Created April 21, 2009 18:22
Show Gist options
  • Save brianmario/99302 to your computer and use it in GitHub Desktop.
Save brianmario/99302 to your computer and use it in GitHub Desktop.
VALUE ctx;
static VALUE someCallback(void * ctx) {
ctx = Qtrue;
}
static VALUE blah() {
ctx = Qnil;
someCallback(ctx);
// Outputs: TrueClass
// Should be: TrueClass
fprintf(stdout, "%s", rb_obj_classname(ctx));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment