Information about #if/#elif conditions Attributes: E result
| 132 | |
| 133 | |
| 134 | class PreprocessorIfCondition: |
| 135 | """ |
| 136 | Information about #if/#elif conditions |
| 137 | |
| 138 | Attributes: |
| 139 | E |
| 140 | result |
| 141 | """ |
| 142 | #preprocessor.cpp/Preprocessor::dump |
| 143 | |
| 144 | file = None |
| 145 | linenr = None |
| 146 | column = None |
| 147 | E = None |
| 148 | result = None |
| 149 | |
| 150 | def __init__(self, element): |
| 151 | _load_location(self, element) |
| 152 | self.E = element.get('E') |
| 153 | self.result = int(element.get('result')) |
| 154 | |
| 155 | def __repr__(self): |
| 156 | attrs = ["file", "linenr", "column", "E", "result"] |
| 157 | return "{}({})".format( |
| 158 | "PreprocessorIfCondition", |
| 159 | ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) |
| 160 | ) |
| 161 | |
| 162 | class ValueType: |
| 163 | """ |