From: lianliming Date: 2007-12-19T12:04:58+09:00 Subject: Re: C Extension: mirco RUBY_VM Hi kubo, Thanks for your reply. I didn't realize this macro is ruby-oci8 specific. I asked here because I thought it is a common micro in ruby c library. > This will be code in ruby-oci8 trunk. > There is no article documenting RUBY_VM. > I use it to check whether the ruby's thread model is green or native, > in other words, whether the ruby version is 1.8 or 1.9. > > #ifdef RUBY_VM > code for ruby 1.9 > #else > code for ruby 1.8 > #endif > > I want RUBY_VERSION_MAJOR, RUBY_VERSION_MINOR and so on. > But there is no macro describing ruby version. I use RUBY_VM instead.