Top Level Namespace
Defined Under Namespace
Modules: LZWS
Instance Method Summary collapse
- #require_header(name, constants: [], macroses: [], types: [], variables: []) ⇒ Object
- #require_library(name, functions) ⇒ Object
Instance Method Details
#require_header(name, constants: [], macroses: [], types: [], variables: []) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'ext/extconf.rb', line 8 def require_header(name, constants: [], macroses: [], types: [], variables: []) 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 macroses.each do |macro| abort "Can't find #{macro} macro in #{name} header" unless have_macro macro, name end types.each do |type| abort "Can't find #{type} type in #{name} header" unless find_type type, nil, name end variables.each do |variable| abort "Can't find #{variable} variable in #{name} header" unless have_var variable, name end end |
#require_library(name, functions) ⇒ Object
97 98 99 100 101 |
# File 'ext/extconf.rb', line 97 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 |