NDEBUG for Ruby Assert statement
Review Request #337 - Created Dec. 2, 2010 and submitted - Latest diff uploaded
| Information | |
|---|---|
| Nilay Vaish | |
| gem5 | |
| Reviewers | |
| Default | |
This diff is for changing the way ASSERT is handled in Ruby. m5.fast compiles out the assert statements by using the macro NDEBUG. Ruby uses the macro RUBY_NO_ASSERT to do so. This macro has been removed and NDEBUG has been put in its place.
I have compiled the source code with this change. The object files created for debug version have the assert statements while those for the fast version don't.
