Project

General

Profile

« Previous | Next » 

Revision 63160a84

Added by ko1 (Koichi Sasada) over 6 years ago

respect NDEBUG.

ruby/ruby.h includes ruby/assert.h, and RUBY_NDEBUG is defined
by checking NDEBUG. In other words, NDEBUG is only seen just
after ruby/ruby.h. This patch also cheks NDEBUG just after
including ruby_assert.h.

Without this patch, assertions in array.c are always enabled.