Hi,

At Tue, 18 Dec 2007 23:56:34 +0900,
KUBO Takehiro wrote in [ruby-talk:284006]:
> 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

They should be `code for ruby with VM' and `code for ruby
without VM'.

> I want RUBY_VERSION_MAJOR, RUBY_VERSION_MINOR and so on.
> But there is no macro describing ruby version. I use RUBY_VM instead.

Check if a feature you want to use is supported.  You should
not rely on cryptic version number check.

-- 
Nobu Nakada