Skip to content

Commit

Permalink
save intermediate changes - issus is finding/calling function parse_p…
Browse files Browse the repository at this point in the history
…arameter

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Aug 7, 2021
1 parent b842643 commit 9835a38
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/parser/x86_64/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,13 @@ namespace smeagle::x86_64::types {
for (auto *field : fields) {
// If we are at the last entry, no comma
auto endcomma = (field == fields.back()) ? "" : ",";
out << buf << " {\"size\" : \"" << field->getSize() << "\",\n";
out << buf << " \"name\" : \"" << field->getName() << "\",\n";
out << buf << " \"type\" : \"" << field->getType()->getName() << "\"}" << endcomma
<< "\n";
auto param = smeagle::x86_64::parse_parameter(field);
param.toJson(out, indent + 3);
out << endcomma << "\n";
// out << buf << " {\"size\" : \"" << field->getSize() << "\",\n";
// out << buf << " \"name\" : \"" << field->getName() << "\",\n";
// out << buf << " \"type\" : \"" << field->getType()->getName() << "\"}" << endcomma
// << "\n";
}
out << buf << "]\n";
}
Expand Down

0 comments on commit 9835a38

Please sign in to comment.