1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/syck/syck.h (ASSERT): fix typo at r18176.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-07-31 02:31:33 +00:00
parent 18caf715c9
commit 42a483d392
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,6 @@
Thu Jul 31 11:30:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
Thu Jul 31 11:31:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/syck/syck.h (ASSERT): fix typo at r18176.
* ext/syck/rubyext.c (rb_syck_compile): expression in ASSERT() has no
effect unless debug mode.

View file

@ -34,7 +34,7 @@ extern "C" {
#if DEBUG
void syck_assert( const char *, unsigned, const char * );
# define ASSERT(f) \
(( f ) ? (void)0 syck_assert( __FILE__, __LINE__, #f )
(( f ) ? (void)0 : syck_assert( __FILE__, __LINE__, #f ))
#else
# define ASSERT(f) ((void)0)
#endif