add dprintf from ts-ddraw
This commit is contained in:
parent
0600b75932
commit
9aa457c8b8
3 changed files with 34 additions and 1 deletions
|
@ -8,6 +8,7 @@ double CounterStop();
|
|||
void DebugPrint(const char *format, ...);
|
||||
void DrawFrameInfoStart();
|
||||
void DrawFrameInfoEnd();
|
||||
int dprintf(const char *fmt, ...);
|
||||
|
||||
extern double DebugFrameTime;
|
||||
extern DWORD DebugFrameCount;
|
||||
|
@ -24,6 +25,8 @@ extern DWORD DebugFrameCount;
|
|||
|
||||
#ifdef _DEBUG_S
|
||||
#define printf(format, ...) DebugPrint("xDBG " format, ##__VA_ARGS__)
|
||||
#else
|
||||
#define printf(format, ...) dprintf(format, ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue