Top Level Namespace
Defined Under Namespace
Modules: BigMath, Jacobian, Kernel, LUSolve, Newton Classes: BigDecimal, Complex, Float, Integer, NilClass, Rational, String
Instance Method Summary collapse
Instance Method Details
#have_builtin_func(name, check_expr, opt = "", &b) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'ext/bigdecimal/extconf.rb', line 4 def have_builtin_func(name, check_expr, opt = "", &b) checking_for (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 |