project64/Source/Common/TraceDefs.h

32 lines
909 B
C
Raw Normal View History

2015-10-25 11:10:54 +00:00
#pragma once
enum TraceType
{
2015-10-25 11:10:54 +00:00
TraceNone = 0x00000000,
TraceError = 0x00000001,
TraceSettings = 0x00000002,
TraceGfxPlugin = 0x00000004,
TraceDebug = 0x00000010,
TraceRecompiler = 0x00000020,
TraceRSP = 0x00000040,
TraceTLB = 0x00000080,
TraceValidate = 0x00000100,
TraceAudio = 0x00000200,
TraceProtectedMem = 0x00000400,
TraceNoHeader = 0x80000000,
};
enum TraceLevel
{
2015-10-25 11:10:54 +00:00
//Handle Existing Code
TrLvError = TraceError,
TrLv1 = TraceSettings | TrLvError,
TrLv2 = TrLv1 | TraceDebug,
TrlvGfxPlugin = TraceGfxPlugin,
TrLvAll = ~TraceNoHeader,
};
2015-10-25 11:10:54 +00:00
void WriteTrace ( TraceType Type, const char * Message );
void WriteTraceF ( TraceType Type, const char * strFormat, ... );
void CloseTrace ( void ); //Free's all memory associated with trace