* include/ruby/ruby.h (RB_EVENT_HOOKS_HAVE_CALLBACK_DATA):

new macro for compatibility check.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-05-21 03:07:45 +00:00
parent 060f433f48
commit c6a24c45f8
4 changed files with 27 additions and 4 deletions

View file

@ -1220,6 +1220,7 @@ typedef struct rb_event_hook_struct {
struct rb_event_hook_struct *next;
} rb_event_hook_t;
#define RB_EVENT_HOOKS_HAVE_CALLBACK_DATA 1
void rb_add_event_hook(rb_event_hook_func_t func, rb_event_flag_t events,
VALUE data);
int rb_remove_event_hook(rb_event_hook_func_t func);