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)
| 2452 | return self.stack and isinstance(self.stack[-1], _NamespaceInfo) |
| 2453 | |
| 2454 | def InExternC(self): |
| 2455 | """Check if we are currently one level inside an 'extern "C"' block. |
| 2456 | |
| 2457 | Returns: |
| 2458 | True if top of the stack is an extern block, False otherwise. |
| 2459 | """ |
| 2460 | return self.stack and isinstance(self.stack[-1], _ExternCInfo) |
| 2461 | |
| 2462 | def InClassDeclaration(self): |
| 2463 | """Check if we are currently one level inside a class or struct declaration. |