diff options
author | Derek Hower <drh5@cs.wisc.edu> | 2009-09-14 17:11:02 -0500 |
---|---|---|
committer | Derek Hower <drh5@cs.wisc.edu> | 2009-09-14 17:11:02 -0500 |
commit | 18e328cb63539accf7e7187ffed1e8a69e4db7cd (patch) | |
tree | 6ed958526f4bbcfa05e330b7b4bdcaa90ef9ef0f /src/mem/ruby/config/cfg.rb | |
parent | 62b06f4a70cb04ac6c0612bcc0176f3c7d40f35b (diff) | |
download | gem5-18e328cb63539accf7e7187ffed1e8a69e4db7cd.tar.xz |
ruby: configuration updates
Diffstat (limited to 'src/mem/ruby/config/cfg.rb')
-rw-r--r-- | src/mem/ruby/config/cfg.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mem/ruby/config/cfg.rb b/src/mem/ruby/config/cfg.rb index 9ec0df252..7e27ac59e 100644 --- a/src/mem/ruby/config/cfg.rb +++ b/src/mem/ruby/config/cfg.rb @@ -1,7 +1,7 @@ #!/usr/bin/ruby -class AssertionFailure < RuntimeError -end +root = File.dirname(File.expand_path(__FILE__)) +require root+'/assert.rb' class Boolean def self.is_a?(obj) @@ -9,12 +9,6 @@ class Boolean end end -def assert(condition,message) - unless condition - raise AssertionFailure.new(message), "\n\nAssertion failed: \n\n #{message}\n\n" - end -end - class LibRubyObject @@all_objs = Array.new attr_reader :obj_name |