예제 #1
0
 def _get_macro(macro):
     if macro in self.defs.keys():
         return self.defs[macro]
     elif macro in constants.userDefinedMacros.keys():
         return constants.userDefinedMacros[macro]
     elif macro in constants.getAdditionalMacros(self.packages["default"].name).keys():
         return constants.getAdditionalMacros(self.packages["default"].name)[macro]
     raise Exception("Unknown macro: " + macro)
예제 #2
0
 def _get_macro(macro):
     if macro in self.defs.keys():
         return self.defs[macro]
     elif macro in constants.userDefinedMacros.keys():
         return constants.userDefinedMacros[macro]
     elif macro in constants.getAdditionalMacros(self.packages["default"].name).keys():
         return constants.getAdditionalMacros(self.packages["default"].name)[macro]
     raise Exception("Unknown macro: " + macro)
예제 #3
0
파일: SpecParser.py 프로젝트: lparth/photon
 def _is_macro_defined(macro):
     return (macro in self.defs.keys()) or (macro in constants.userDefinedMacros.keys()) \
         or (macro in constants.getAdditionalMacros(self.packages["default"].name).keys())
예제 #4
0
 def _is_macro_defined(macro):
     return (macro in self.defs.keys()) or (macro in constants.userDefinedMacros.keys()) \
         or (macro in constants.getAdditionalMacros(self.packages["default"].name).keys())