X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FParsedSource.cpp;h=90498e71f3e17ee5e2b96dea5d58803994851cc3;hb=ba714f2fe9064dd49b4c4a387502579b38a73223;hp=bceed089f0377f4a4678edc84414afa4d7c3084b;hpb=622b633b3c284b3b44c8cbb71528d20b97fe8d59;p=l2e.git diff --git a/src/loader/ParsedSource.cpp b/src/loader/ParsedSource.cpp index bceed08..90498e7 100644 --- a/src/loader/ParsedSource.cpp +++ b/src/loader/ParsedSource.cpp @@ -103,6 +103,12 @@ const Definition &ParsedSource::GetDefinition(const std::string &name) const { } } +void ParsedSource::WriteHeader(std::ostream &out) const { + for (std::set::const_iterator i(exports.begin()), end(exports.end()); i != end; ++i) { + out << GetDeclaration(*i).TypeName() << ' ' << *i << std::endl; + } +} + Definition::~Definition() { if (isLiteral) {