Top Level Namespace

Instance Method Summary collapse

Instance Method Details

#have_feature(name, header, library, fatal = true) ⇒ Object



9
10
11
12
13
14
15
# File 'ext/curses/pad/extconf.rb', line 9

def have_feature name, header, library, fatal = true
  feature = have_func(name) or have_macro(name, headers)

  return unless fatal

  abort "unable to find #{name}() in #{header} and #{library}" unless feature
end