parameters: (self, line)
return_statement: return (key, val)
docstring: Parse a #define line for an <enum>.
docstring_summary: Parse a #define line for an <enum>.
docstring_tokens: Parse a #define line for an <enum > .
function: def _parse_define(self, line):
          """Parse a #define line for an <enum>."""
          m = self.DEFINE.search(line)
          if not m:
              if self.verbose and line.find("#define") >= 0:
                  print "ignore %s" % (line)
              return None
  
          key = m.group("key").strip()
          val = m.group("value").strip()
  
          # enum must begin with GL_ and be all uppercase
          if ((not (key.startswith("GL_") and key.isupper())) or
              (self.ignore_enum.match(key) and val == "1")):
              if self.verbose:
                  print "ignore enum %s" % (key)
              return None
  
          return (key, val)
function_tokens: def _parse_define ( self , line ) : m = self . DEFINE . search ( line ) if not m : if self . verbose and line . find ( "#define" ) >= 0 : print "ignore %s" % ( line ) return None key = m . group ( "key" ) . strip ( ) val = m . group ( "value" ) . strip ( ) # enum must begin with GL_ and be all uppercase if ( ( not ( key . startswith ( "GL_" ) and key . isupper ( ) ) ) or ( self . ignore_enum . match ( key ) and val == "1" ) ) : if self . verbose : print "ignore enum %s" % ( key ) return None return ( key , val )