parameters: (s)
return_statement: return s
docstring: Escapes a CPP define so that it will reach the compiler unaltered.
docstring_summary: Escapes a CPP define so that it will reach the compiler unaltered.
docstring_tokens: Escapes a CPP define so that it will reach the compiler unaltered .
function: def _EscapeCppDefineForMSVS(s):
      """Escapes a CPP define so that it will reach the compiler unaltered."""
      s = _EscapeEnvironmentVariableExpansion(s)
      s = _EscapeCommandLineArgumentForMSVS(s)
      s = _EscapeVCProjCommandLineArgListItem(s)
      # cl.exe replaces literal # characters with = in preprocesor definitions for
      # some reason. Octal-encode to work around that.
      s = s.replace("#", "\\%03o" % ord("#"))
      return s
function_tokens: def _EscapeCppDefineForMSVS ( s ) : s = _EscapeEnvironmentVariableExpansion ( s ) s = _EscapeCommandLineArgumentForMSVS ( s ) s = _EscapeVCProjCommandLineArgListItem ( s ) # cl.exe replaces literal # characters with = in preprocesor definitions for # some reason. Octal-encode to work around that. s = s . replace ( "#" , "\\%03o" % ord ( "#" ) ) return s