Top Level Namespace

Defined Under Namespace

Modules: DNSSD

Instance Method Summary collapse

Instance Method Details

#abort(msg) ⇒ Object

Print an error message and exit with an error condition



31
32
33
34
# File 'ext/extconf.rb', line 31

def abort( msg )
	$stderr.puts( msg )
	exit 1
end

#check_for_funcs(*funcs) ⇒ Object

:nodoc: all

Extension configuration script for DNS_SD C Extension. $Id: extconf.rb,v 1.8 2005/03/20 22:50:43 cmills Exp $



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

def check_for_funcs(*funcs)
	funcs.flatten!
	funcs.each do |f|
		abort("need function #{f}") unless have_func(f)
	end
end

#check_for_macros(*macros) ⇒ Object



18
19
20
21
22
23
# File 'ext/extconf.rb', line 18

def check_for_macros(*macros)
  macros.flatten!
  macros.each do |m|
    abort("need macro #{m}") unless have_macro(m)
  end
end