MCPcopy Create free account
hub / github.com/ddnet/ddnet / Log

Method Log

src/engine/shared/assertion_logger.cpp:31–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29};
30
31void CAssertionLogger::Log(const CLogMessage *pMessage)
32{
33 if(m_Filter.Filters(pMessage))
34 {
35 return;
36 }
37 const CLockScope LockScope(m_DbgMessageMutex);
38 SDebugMessageItem *pMsgItem = (SDebugMessageItem *)m_DbgMessages.Allocate(sizeof(SDebugMessageItem));
39 str_copy(pMsgItem->m_aMessage, pMessage->m_aLine);
40}
41
42void CAssertionLogger::GlobalFinish()
43{

Callers

nothing calls this directly

Calls 3

FiltersMethod · 0.80
str_copyFunction · 0.50
AllocateMethod · 0.45

Tested by

no test coverage detected