(self, module_name: str, emitter: Emitter)
| 1508 | self.context.declarations[name] = HeaderDeclaration(f"{base};", defn=defn) |
| 1509 | |
| 1510 | def declare_internal_globals(self, module_name: str, emitter: Emitter) -> None: |
| 1511 | static_name = emitter.static_name("globals", module_name) |
| 1512 | if static_name not in self.context.declarations: |
| 1513 | self.context.declarations[static_name] = HeaderDeclaration( |
| 1514 | f"PyObject *{static_name};", needs_export=True |
| 1515 | ) |
| 1516 | |
| 1517 | def module_internal_static_name(self, module_name: str, emitter: Emitter) -> str: |
| 1518 | return emitter.static_name(module_name + "__internal", None, prefix=MODULE_PREFIX) |
no test coverage detected