(context)
| 14 | |
| 15 | |
| 16 | def getCodeObjectsDeclCode(context): |
| 17 | if isExperimental("new-code-objects"): |
| 18 | return () |
| 19 | |
| 20 | statements = [] |
| 21 | |
| 22 | for _code_object_key, code_identifier in context.getCodeObjects(): |
| 23 | declaration = "static PyCodeObject *%s;" % code_identifier |
| 24 | |
| 25 | statements.append(declaration) |
| 26 | |
| 27 | if context.getOwner().getFullName() == "__main__": |
| 28 | statements.append('/* For use in "MainProgram.c". */') |
| 29 | statements.append("PyCodeObject *code_objects_main = NULL;") |
| 30 | |
| 31 | return statements |
| 32 | |
| 33 | |
| 34 | def _getMakeCodeObjectArgs(code_object_handle, context): |
no test coverage detected
searching dependent graphs…