Eliot Miranda uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-eem.2768.mcz==================== Summary ====================
Name: VMMaker.oscog-eem.2768
Author: eem
Time: 2 July 2020, 3:43:57.327061 pm
UUID: 750410d6-9496-478f-9928-bc5eaefee4d3
Ancestors: VMMaker.oscog-eem.2767
Slang: make good on the previous commit.
=============== Diff against VMMaker.oscog-eem.2767 ===============
Item was changed:
----- Method: CCodeGenerator>>maybePutPreambleFor:on: (in category 'C code generator') -----
maybePutPreambleFor: aClass on: aStream
+ "Only emit preambleCCode if the method is implemented and it answers something non-nil."
(aClass class whichClassIncludesSelector: #preambleCCode) ifNotNil:
[:actualMetaclass |
+ aClass preambleCCode ifNotNil:
+ [:preambleCCode|
+ aStream
+ ensureCr; cr;
+ nextPutAll: '/* '; print: actualMetaclass; nextPutAll: '>>preambleCCode */'; cr;
+ nextPutAll: preambleCCode; cr;
+ nextPutAll: '/* end '; print: actualMetaclass; nextPutAll: '>>preambleCCode */'; cr]]!
- aStream
- ensureCr; cr;
- nextPutAll: '/* '; print: actualMetaclass; nextPutAll: '>>preambleCCode */'; cr;
- nextPutAll: actualMetaclass soleInstance preambleCCode; cr;
- nextPutAll: '/* end '; print: actualMetaclass; nextPutAll: '>>preambleCCode */'; cr]!
Item was added:
+ ----- Method: Cogit class>>preambleCCode (in category 'translation') -----
+ preambleCCode
+ ^(self activeCompilerClass class whichClassIncludesSelector: #preambleCCode) ifNotNil:
+ [self activeCompilerClass preambleCCode]!