(d, flavor)
return QuoteShellArgument(ninja_syntax.escape('-D' + d), flavor)
Takes a preprocessor define and returns a -D parameter that's ninja- and
  shell-escaped.
Takes a preprocessor define and returns a -D parameter that's ninja- and
  shell-escaped.
Takes a preprocessor define and returns a - D parameter that s ninja - and shell - escaped .
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)
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 )