parameters: (self, expr)
return_statement: return Node.EvaluateExpression(
          expr, defs, target_platform, extra_variables)
docstring: Returns true if and only if the Python expression 'expr' evaluates
      to true.
  
      The expression is given a few local variables:
        - 'lang' is the language currently being output
             (the 'lang' attribute of the <output> element).
        - 'context' is the current output context
             (the 'context' attribute of the <output> element).
        - 'defs' is a map of C preprocessor-style symbol names to their values.
        - 'os' is the current platform (likely 'linux2', 'win32' or 'darwin').
        - 'pp_ifdef(symbol)' is a shorthand for "symbol in defs".
        - 'pp_if(symbol)' is a shorthand for "symbol in defs and defs[symbol]".
        - 'is_linux', 'is_macosx', 'is_win', 'is_posix' are true if 'os'
             matches the given platform.
docstring_summary: Returns true if and only if the Python expression 'expr' evaluates
      to true.
docstring_tokens: Returns true if and only if the Python expression expr evaluates to true .
function: def EvaluateCondition(self, expr):
      '''Returns true if and only if the Python expression 'expr' evaluates
      to true.
  
      The expression is given a few local variables:
        - 'lang' is the language currently being output
             (the 'lang' attribute of the <output> element).
        - 'context' is the current output context
             (the 'context' attribute of the <output> element).
        - 'defs' is a map of C preprocessor-style symbol names to their values.
        - 'os' is the current platform (likely 'linux2', 'win32' or 'darwin').
        - 'pp_ifdef(symbol)' is a shorthand for "symbol in defs".
        - 'pp_if(symbol)' is a shorthand for "symbol in defs and defs[symbol]".
        - 'is_linux', 'is_macosx', 'is_win', 'is_posix' are true if 'os'
             matches the given platform.
      '''
      root = self.GetRoot()
      lang = getattr(root, 'output_language', '')
      context = getattr(root, 'output_context', '')
      defs = getattr(root, 'defines', {})
      target_platform = getattr(root, 'target_platform', '')
      extra_variables = {
          'lang': lang,
          'context': context,
      }
      return Node.EvaluateExpression(
          expr, defs, target_platform, extra_variables)
function_tokens: def EvaluateCondition ( self , expr ) : root = self . GetRoot ( ) lang = getattr ( root , 'output_language' , '' ) context = getattr ( root , 'output_context' , '' ) defs = getattr ( root , 'defines' , { } ) target_platform = getattr ( root , 'target_platform' , '' ) extra_variables = { 'lang' : lang , 'context' : context , } return Node . EvaluateExpression ( expr , defs , target_platform , extra_variables )