From: KUBO Takehiro Date: 2007-12-19T08:18:39+09:00 Subject: Re: C Extension: mirco RUBY_VM On Dec 19, 2007 5:33 AM, Paul Brannan wrote: > 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 Thanks. I grepped sub directories under 'include' in ruby 1.9 source tree. But version.h is found on the top directory. I have not noticed it. > But unfortunately version.h doesn't get included automatically (IMO it > should -- and it should have include guards as well). In addition, version.h is installed on ruby 1.8. but not on 1.9. I cannot use it. -- KUBO Takehiro