Created
April 21, 2009 18:21
-
-
Save brianmario/99301 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
static VALUE someCallback(void * ctx) { | |
ctx = Qtrue; | |
} | |
static VALUE blah() { | |
VALUE ctx = Qnil; | |
someCallback(ctx); | |
// Outputs: NilClass | |
// 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