D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
MakeMakefile
/
Filename :
have_func-i.ri
back
Copy
U:RDoc::AnyMethod[iI"have_func:ETI"MakeMakefile#have_func;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [ I"KReturns whether or not the function +func+ can be found in the common ;TI"Pheader files, or within any +headers+ that you provide. If found, a macro ;TI"Mis passed as a preprocessor constant to the compiler using the function ;TI"0name, in uppercase, prepended with +HAVE_+.;To:RDoc::Markup::BlankLine o; ; [I"ITo check functions in an additional library, you need to check that ;TI"Klibrary first using <code>have_library()</code>. The +func+ shall be ;TI"?either mere function name or function name with arguments.;T@o; ; [I"MFor example, if <code>have_func('foo')</code> returned +true+, then the ;TI"C+HAVE_FOO+ preprocessor macro would be passed to the compiler.;T: @fileI"lib/mkmf.rb;T:0@omit_headings_from_table_of_contents_below000[ I"((func, headers = nil, opt = "", &b);T@FI"MakeMakefile;TcRDoc::NormalModule00