Top Level Namespace
Defined Under Namespace
Modules: Magick
Constant Summary collapse
- RMAGICK_VERS =
"2.6.0"- MIN_RUBY_VERS =
"1.8.2"- MIN_RUBY_VERS_NO =
MIN_RUBY_VERS.tr(".","").to_i
- MIN_IM_VERS =
"6.3.0"- MIN_IM_VERS_NO =
MIN_IM_VERS.tr(".","").to_i
- SUMMARY =
"\n\n\#{\"=\" * 70}\n\#{DateTime.now.strftime(\"%a %d%b%y %T\")}\nThis installation of RMagick \#{RMAGICK_VERS} is configured for\nRuby \#{RUBY_VERSION} (\#{RUBY_PLATFORM}) and ImageMagick \#{$magick_version}\n\#{\"=\" * 70}\n\n\n"
Instance Method Summary collapse
- #exit_failure(msg) ⇒ Object
-
#have_enum_value(enum, value, headers = nil, &b) ⇒ Object
Test for a specific value in an enum type.
-
#have_enum_values(enum, values, headers = nil, &b) ⇒ Object
Test for multiple values of the same enum type.
Instance Method Details
#exit_failure(msg) ⇒ Object
42 43 44 45 46 |
# File 'ext/RMagick/extconf.rb', line 42 def exit_failure(msg) Logging:: msg msg+"\n" exit(1) end |
#have_enum_value(enum, value, headers = nil, &b) ⇒ Object
Test for a specific value in an enum type
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'ext/RMagick/extconf.rb', line 13 def have_enum_value(enum, value, headers=nil, &b) checking_for "#{enum}.#{value}" do if try_compile("\#{COMMON_HEADERS}\n\#{cpp_include(headers)}\n/*top*/\nint main() { \#{enum} t = \#{value}; t = t; return 0; }\n", &b) $defs.push(format("-DHAVE_ENUM_%s", value.upcase)) true else false end end end |
#have_enum_values(enum, values, headers = nil, &b) ⇒ Object
Test for multiple values of the same enum type
33 34 35 36 37 |
# File 'ext/RMagick/extconf.rb', line 33 def have_enum_values(enum, values, headers=nil, &b) values.each do |value| have_enum_value(enum, value, headers, &b) end end |