Flowdock
method

try_const

Importance_0
try_const(const, headers = nil, opt = "", &b) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/mkmf.rb, line 930
def try_const(const, headers = nil, opt = "", &b)
  const, type = *const
  if try_compile(#{cpp_include(headers)}/*top*/typedef #{type || 'int'} conftest_type;conftest_type conftestval = #{type ? '' : '(int)'}#{const};, opt, &b)
    $defs.push(format("-DHAVE_CONST_%s", const.tr_cpp))
    true
  else
    false
  end
end
Register or log in to add new notes.