diff options
| author | Yong He <yonghe@outlook.com> | 2020-06-25 16:29:39 -0700 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2020-06-25 16:29:39 -0700 |
| commit | 09c64acde25dddbd70e2070df05c2e0362b750a8 (patch) | |
| tree | 92c7805b43cf6af0bfa46588b566391e122967c3 /source/slang/slang.cpp | |
| parent | 218a39b65c86654772c3d6adf2479e7cadc85d24 (diff) | |
| parent | 892acc47143348d50062354492b048c4e474d1ec (diff) | |
Merge remote-tracking branch 'official/master' into dyndispatch2
Diffstat (limited to 'source/slang/slang.cpp')
| -rw-r--r-- | source/slang/slang.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 7c535d64b..6d4a27733 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -1080,10 +1080,18 @@ void FrontEndCompileRequest::parseTranslationUnit( // Test serialization { RefPtr<ASTSerialClasses> classes = new ASTSerialClasses; - ASTSerialWriter writer(classes); - // Lets serialize it all - writer.addPointer(translationUnit->getModuleDecl()); + OwnedMemoryStream stream(FileAccess::ReadWrite); + + { + ASTSerialWriter writer(classes); + + // Lets serialize it all + writer.addPointer(translationUnit->getModuleDecl()); + // Let's stick it all in a stream + writer.write(&stream); + } + } #endif |
