From: Paul Brannan Date: 2007-12-19T05:33:11+09:00 Subject: Re: C Extension: mirco RUBY_VM On Tue, Dec 18, 2007 at 11:56:34PM +0900, KUBO Takehiro wrote: > I want RUBY_VERSION_MAJOR, RUBY_VERSION_MINOR and so on. > But there is no macro describing ruby version. I use RUBY_VM instead. In version.h there is: #define RUBY_VERSION_CODE 190 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 0 But unfortunately version.h doesn't get included automatically (IMO it should -- and it should have include guards as well). Paul