Lines Matching full:condition
4 def negate(condition):
8 if condition.startswith('!'):
9 return condition[1:]
10 return "!" + condition
40 " condition=", repr(self.condition()),
44 return str(self.line_number).rjust(4) + ": " + self.condition()
46 def condition(self):
48 Returns the current preprocessor state, as a single #if condition.
50 return " && ".join(condition for token, condition in self.stack)
142 condition = ' '.join(fields[1:]).strip()
156 if not condition:
159 if not self.is_a_simple_defined(condition):
160 condition = "(" + condition + ")"
162 fields = condition.split()
166 condition = 'defined(' + symbol + ')'
168 condition = '!' + condition
170 self.stack.append(("if", condition))