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)
| 2352 | return self.stack and isinstance(self.stack[-1], _NamespaceInfo) |
| 2353 | |
| 2354 | def InExternC(self): |
| 2355 | """Check if we are currently one level inside an 'extern "C"' block. |
| 2356 | |
| 2357 | Returns: |
| 2358 | True if top of the stack is an extern block, False otherwise. |
| 2359 | """ |
| 2360 | return self.stack and isinstance(self.stack[-1], _ExternCInfo) |
| 2361 | |
| 2362 | def InClassDeclaration(self): |
| 2363 | """Check if we are currently one level inside a class or struct declaration. |