MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / WriteTargetChanges

Method WriteTargetChanges

src/Misc/SyncLogging.cpp:190–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void SyncLogger::WriteTargetChanges(FILE* const pLogFile, int frameDigits)
191{
192 fprintf(pLogFile, "Target changes:\n");
193
194 for (size_t i = 0; i < SyncLogger::TargetChanges.Size(); i++)
195 {
196 auto const& targetChange = SyncLogger::TargetChanges.Get();
197
198 if (!targetChange.Initialized)
199 continue;
200
201 fprintf(pLogFile, "#%05d: RTTI: %02d | ID: %08d | TargetRTTI: %02d | TargetID: %08d | Caller: %08x | Frame: %*d\n",
202 i, targetChange.Type, targetChange.ID, targetChange.TargetType, targetChange.TargetID, targetChange.Caller, frameDigits, targetChange.Frame);
203 }
204
205 fprintf(pLogFile, "\n");
206}
207
208void SyncLogger::WriteDestinationChanges(FILE* const pLogFile, int frameDigits)
209{

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected