Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
MakeMakefile#find_type
find_type(type, opt, *headers, &b)
lib/mkmf.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/mkmf.rb, line 1296
def find_type(type, opt, *headers, &b)
opt ||= ""
fmt = "not found"
def fmt.%(x)
x ? x.respond_to?(:join) ? x.join(",") : x : self
end
checking_for checking_message(type, nil, opt), fmt do
headers.find do |h|
try_type(type, h, opt, &b)
end
end
end
Returns where the static type type is defined.
You may also pass additional flags to opt which are then passed along to the compiler.
See also have_type.