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)
| 2941 | return self.stack and isinstance(self.stack[-1], _NamespaceInfo) |
| 2942 | |
| 2943 | def InExternC(self): |
| 2944 | """Check if we are currently one level inside an 'extern "C"' block. |
| 2945 | |
| 2946 | Returns: |
| 2947 | True if top of the stack is an extern block, False otherwise. |
| 2948 | """ |
| 2949 | return self.stack and isinstance(self.stack[-1], _ExternCInfo) |
| 2950 | |
| 2951 | def InClassDeclaration(self): |
| 2952 | """Check if we are currently one level inside a class or struct declaration. |