parameters: (d, flavor)
return_statement: return QuoteShellArgument(ninja_syntax.escape('-D' + d), flavor)
docstring: Takes a preprocessor define and returns a -D parameter that's ninja- and
    shell-escaped.
docstring_summary: Takes a preprocessor define and returns a -D parameter that's ninja- and
    shell-escaped.
docstring_tokens: Takes a preprocessor define and returns a - D parameter that s ninja - and shell - escaped .
function: def Define(d, flavor):
    """Takes a preprocessor define and returns a -D parameter that's ninja- and
    shell-escaped."""
    if flavor == 'win':
      # cl.exe replaces literal # characters with = in preprocesor definitions for
      # some reason. Octal-encode to work around that.
      d = d.replace('#', '\\%03o' % ord('#'))
    return QuoteShellArgument(ninja_syntax.escape('-D' + d), flavor)
function_tokens: def Define ( d , flavor ) : if flavor == 'win' : # cl.exe replaces literal # characters with = in preprocesor definitions for # some reason. Octal-encode to work around that. d = d . replace ( '#' , '\\%03o' % ord ( '#' ) ) return QuoteShellArgument ( ninja_syntax . escape ( '-D' + d ) , flavor )