E
elias.athanasopoulos
Hello!
How can I check for the Ruby version inside a C extension? I found some
constants in version.h, but I don't think that file is included via
ruby.h and it has a very common name that may conflicts with similar
files in other projects. So, I don't think it is wise to include
version.h in a Ruby extension.
Is there another way to check if the extension gets compiled with Ruby
1.8 or 1.9?
Regards,
Elias
How can I check for the Ruby version inside a C extension? I found some
constants in version.h, but I don't think that file is included via
ruby.h and it has a very common name that may conflicts with similar
files in other projects. So, I don't think it is wise to include
version.h in a Ruby extension.
Is there another way to check if the extension gets compiled with Ruby
1.8 or 1.9?
Regards,
Elias