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

Method getSymbolPos

erpcgen/src/types/Type.cpp:240–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240int32_t SymbolScope::getSymbolPos(const Symbol *sym)
241{
242 for (unsigned int i = 0; i < m_symbolVector.size(); i++)
243 {
244 if (m_symbolVector[i] == sym)
245 {
246 return i;
247 }
248 }
249 return -1;
250}
251
252void SymbolScope::dump()
253{

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected