Top Level Namespace

Defined Under Namespace

Modules: Rack, RubyProf

Instance Method Summary collapse

Instance Method Details

#add_define(name, value = nil) ⇒ Object



36
37
38
39
40
41
42
# File 'ext/ruby_prof/extconf.rb', line 36

def add_define(name, value = nil)
  if value
    $defs.push("-D#{name}=#{value}")
  else
    $defs.push("-D#{name}")
  end
end

#windows?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'ext/ruby_prof/extconf.rb', line 44

def windows?
  RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
end