def EscapeCppDefine(s):
 s = EscapeShellArgument(s)
 s = EscapeMakeVariableExpansion(s)
 return s.replace('#', '\\#')

def EscapeCppDefine ( s ) : s = EscapeShellArgument ( s ) s = EscapeMakeVariableExpansion ( s ) return s . replace ( '#' , '\\#' )
escapes a cpp define so that it will reach the compiler unaltered .