Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > mkmfライブラリ > Kernelモジュール > have_macro (private)

instance method Kernel#have_macro

have_macro(macro, headers = nil, opt = "", &b) [added by mkmf]

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.