parameters: (s)
return_statement: return s.replace('#', r'\#')
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 EscapeCppDefine(s):
    """Escapes a CPP define so that it will reach the compiler unaltered."""
    s = EscapeShellArgument(s)
    s = EscapeMakeVariableExpansion(s)
    # '#' characters must be escaped even embedded in a string, else Make will
    # treat it as the start of a comment.
    return s.replace('#', r'\#')
function_tokens: def EscapeCppDefine ( s ) : s = EscapeShellArgument ( s ) s = EscapeMakeVariableExpansion ( s ) # '#' characters must be escaped even embedded in a string, else Make will # treat it as the start of a comment. return s . replace ( '#' , r'\#' )