X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/64a505ff07b28093bb91a680f8a2c2292327e896..a61a2713e0da8cffde645b2655df4bf7c04e32c5:/Output.cpp diff --git a/Output.cpp b/Output.cpp index cbd853f..6610ff2 100644 --- a/Output.cpp +++ b/Output.cpp @@ -920,6 +920,21 @@ void CYTypeSigned::Output(CYOutput &out) const { out << "signed" << specifier_; } +void CYTypeStruct::Output(CYOutput &out) const { + out << "struct" << ' '; + if (name_ != NULL) + out << *name_ << ' '; + out << '{' << '\n'; + ++out.indent_; + CYForEach (field, fields_) { + out << '\t' << *field->typed_; + out.Terminate(); + out << '\n'; + } + --out.indent_; + out << '}'; +} + void CYTypeUnsigned::Output(CYOutput &out) const { out << "unsigned" << specifier_; }