MCPcopy Create free account
hub / github.com/cpputest/cpputest / addNodeToList

Method addNodeToList

src/CppUTestExt/CodeMemoryReportFormatter.cpp:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void CodeMemoryReportFormatter::addNodeToList(const char* variableName, void* memory, CodeReportingAllocationNode* next)
66{
67 CodeReportingAllocationNode* newNode = (CodeReportingAllocationNode*) (void*) internalAllocator_->alloc_memory(sizeof(CodeReportingAllocationNode), __FILE__, __LINE__);
68 newNode->memory_ = memory;
69 newNode->next_ = next;
70 SimpleString::StrNCpy(newNode->variableName_, variableName, MAX_VARIABLE_NAME_LENGTH);
71 codeReportingList_ = newNode;
72}
73
74CodeReportingAllocationNode* CodeMemoryReportFormatter::findNode(void* memory)
75{

Callers

nothing calls this directly

Calls 1

alloc_memoryMethod · 0.45

Tested by

no test coverage detected