Project

General

Profile

« Previous | Next » 

Revision e7bcb416

Added by shyouhei (Shyouhei Urabe) over 5 years ago

avoid #if inside of rb_str_new_cstr

ISO/IEC 9899:1999 section 6.10.3 paragraph 11 explicitly states that
"If there are sequences of preprocessing tokens within the list of
arguments that would otherwise act as preprocessing directives, the
behavior is undefined."

rb_str_new_cstr is in fact a macro. We cannot do this.