Top Level Namespace
Defined Under Namespace
Modules: BZS
Instance Method Summary collapse
Instance Method Details
#require_header(name, constants: [], types: []) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'ext/extconf.rb', line 8 def require_header(name, constants: [], types: []) abort "Can't find #{name} header" unless find_header name constants.each do |constant| abort "Can't find #{constant} constant in #{name} header" unless have_const constant, name end types.each do |type| abort "Can't find #{type} type in #{name} header" unless find_type type, nil, name end end |
#require_library(name, functions) ⇒ Object
42 43 44 45 46 |
# File 'ext/extconf.rb', line 42 def require_library(name, functions) functions.each do |function| abort "Can't find #{function} function in #{name} library" unless find_library name, function end end |