Check if we are currently one level inside an 'extern "C"' block. Returns: True if top of the stack is an extern block, False otherwise.
(self)
| 2240 | return self.stack and isinstance(self.stack[-1], _NamespaceInfo) |
| 2241 | |
| 2242 | def InExternC(self): |
| 2243 | """Check if we are currently one level inside an 'extern "C"' block. |
| 2244 | |
| 2245 | Returns: |
| 2246 | True if top of the stack is an extern block, False otherwise. |
| 2247 | """ |
| 2248 | return self.stack and isinstance(self.stack[-1], _ExternCInfo) |
| 2249 | |
| 2250 | def InClassDeclaration(self): |
| 2251 | """Check if we are currently one level inside a class or struct declaration. |