def EscapeXcodeDefine(s):
 return re.sub(_xcode_define_re, '\\\\\\1', s)

def EscapeXcodeDefine ( s ) : return re . sub ( _xcode_define_re , '\\\\\\1' , s )
we must escape the defines that we give to xcode so that it knows not to split on spaces and to respect backslash and quote literals .