BasicObject
# File src/features.rb, line 47 def have_db_const(const) const.each do |c| print "checking for #{c} in db.h..." try_db_compile("CONST_#{c.tr_cpp}", #include <db.h>int main(){ int x = #{c}; return x;}, "checking for #{c} in db.h... ") end end
# File src/features.rb, line 11 def have_db_member(where, array) found = false array.each do |st| if have_struct_member(where, st, 'db.h') $defs.pop $defs << "-DHAVE_ST_#{where}_#{st.tr_cpp}" found = true else $defs << "-DNOT_HAVE_ST_#{where}_#{st.tr_cpp}" end end found end
# File src/features.rb, line 25 def have_db_type(type) if have_type(type, 'db.h') true else $defs << "-DNOT_HAVE_TYPE_#{type.tr_cpp}" false end end
# File src/features.rb, line 34 def try_db_compile(func, src, mess = nil) print "checking for #{func}... " unless mess if try_compile(src) $defs << "-DHAVE_#{func}" puts "yes" true else $defs << "-DNOT_HAVE_#{func}" puts "no" false end end
Generated with the Darkfish Rdoc Generator 2.