class Object
Public Instance Methods
Source
# File ext/json/ext/parser/extconf.rb, line 18 def have_builtin_func(name, check_expr, opt = "", &b) checking_for checking_message(name.funcall_style, nil, opt) do if try_compile(<<SRC, opt, &b) int foo; int main() { #{check_expr}; return 0; } SRC $defs.push(format("-DHAVE_BUILTIN_%s", name.tr_cpp)) true else false end end end