def gen_preimpl(f, database): if database.translator is None or database.translator.rtyper is None: return preimplementationlines = pre_include_code_lines( database, database.translator.rtyper) for line in preimplementationlines: print >> f, line
def gen_preimpl(f, database): f.write('#ifndef _PY_PREIMPL_H\n#define _PY_PREIMPL_H\n') if database.translator is None or database.translator.rtyper is None: return preimplementationlines = pre_include_code_lines( database, database.translator.rtyper) for line in preimplementationlines: print >> f, line f.write('#endif /* _PY_PREIMPL_H */\n')