From: Athanasopoulos Date: 2006-08-28T22:15:09+09:00 Subject: Re: Version Check in C Extension Hello! ts wrote: > static VALUE > bdb_indexes(int argc, VALUE *argv, VALUE obj) > { > VALUE indexes; > int i; > > #if HAVE_RB_ARY_VALUES_AT > rb_warn("Common#%s is deprecated; use Common#values_at", > #if HAVE_RB_FRAME_THIS_FUNC > rb_id2name(rb_frame_this_func())); > #else > rb_id2name(rb_frame_last_func())); > #endif > #endif Again, in my Debian box: elathan@velka:/usr/lib/ruby/1.9/i486-linux> find . | xargs grep HAVE_RB ./config.h:#define HAVE_RB_FD_INIT 1 ./intern.h:#if defined(NFDBITS) && defined(HAVE_RB_FD_INIT) ./intern.h:#define HAVE_RB_DEFINE_ALLOC_FUNC 1 elathan@velka:/usr/lib/ruby/1.9/i486-linux> Should I generate the macro HAVE_RB_FRAME_THIS_FUNC in the Makefile? I thought Ruby 1.9 had it by default defined in its internals. Regards, Elias