MCPcopy Create free account
hub / github.com/csyonghe/Spire / GenerateStructs

Method GenerateStructs

Source/SpireCore/CLikeCodeGen.cpp:805–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

803 }
804
805 void CLikeCodeGen::GenerateStructs(StringBuilder & sb, ILProgram * program)
806 {
807 for (auto & st : program->Structs)
808 {
809 if (!st->IsIntrinsic)
810 {
811 sb << "struct " << st->TypeName << "\n{\n";
812 for (auto & f : st->Members)
813 {
814 sb << f.Type->ToString();
815 sb << " " << f.FieldName << ";\n";
816 }
817 sb << "};\n";
818 }
819 }
820 }
821
822 void CLikeCodeGen::GenerateReferencedFunctions(StringBuilder & sb, ILProgram * program, ArrayView<ILWorld*> worlds)
823 {

Callers

nothing calls this directly

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected