End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
MakeMakefile#have_macro
have_macro(macro, headers = nil, opt = "", &b)
lib/mkmf.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/mkmf.rb, line 1036
def have_macro(macro, headers = nil, opt = "", &b)
checking_for checking_message(macro, headers, opt) do
macro_defined?(macro, cpp_include(headers), opt, &b)
end
end
Returns whether or not macro is defined either in the common header files or within any headers you provide.
Any options you pass to opt are passed along to the compiler.
See also
#have_library
#have_struct_member
#have_header
#have_type
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0