Flowdock
method

try_const

Importance_0
v1_9_2_180 - Show latest stable - 0 notes - Class: Object
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 953
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.