Created
August 22, 2009 18:20
-
-
Save methodmissing/172904 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 rb_f_callback( int argc, VALUE *argv ) | |
| { | |
| return rb_callback_initialize( argc, argv, rb_callback_new() ); | |
| } | |
| static VALUE | |
| rb_obj_callback( VALUE obj, VALUE mid) | |
| { | |
| VALUE args[2]; | |
| args[0] = obj; | |
| args[1] = mid; | |
| return rb_f_callback( 2, (VALUE *)args ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment