MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / casesAreTheSame

Method casesAreTheSame

erpcgen/src/types/Type.cpp:624–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622}
623
624bool UnionType::casesAreTheSame(UnionCase *a, UnionCase *b)
625{
626 vector<string> aNames = a->getMemberDeclarationNames();
627 vector<string> bNames = b->getMemberDeclarationNames();
628 if (aNames.size() != bNames.size())
629 {
630 return false;
631 }
632 for (unsigned int i = 0; i < aNames.size(); ++i)
633 {
634 if (aNames[i] != bNames[i])
635 {
636 return false;
637 }
638 }
639 return true;
640}
641
642bool UnionType::addUnionMemberDeclaration(const string &name, DataType *dataType)
643{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected