mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-30 06:06:18 +00:00
OpenGL: Changed printf to DEBUG_LOG to avoid that it's always shown in the console window
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1801 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
aacfb94059
commit
cbdad3495d
5 changed files with 58 additions and 30 deletions
|
@ -78,25 +78,30 @@ struct TRectangle
|
|||
int left, top, right, bottom;
|
||||
};
|
||||
|
||||
void DebugLog(const char* _fmt, ...);
|
||||
void __Log(const char *format, ...);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Logging
|
||||
// ¯¯¯¯¯¯¯¯¯¯
|
||||
void DebugLog(const char* _fmt, ...); // This one goes to the main program
|
||||
void __Log(const char *format, ...); // This one is for the local console
|
||||
void __Log(int type, const char *format, ...);
|
||||
void HandleGLError();
|
||||
|
||||
#define ERROR_LOG __Log
|
||||
|
||||
|
||||
#if defined(_DEBUG) || defined(DEBUGFAST)
|
||||
// FIXME ugly hack for debug to build should use logmanager
|
||||
//#define INFO_LOG if( g_Config.iLog & CONF_LOG ) __Log
|
||||
//#define PRIM_LOG if( g_Config.iLog & CONF_PRIMLOG ) __Log
|
||||
#define INFO_LOG __Log
|
||||
#define PRIM_LOG __Log
|
||||
#define DEBUG_LOG __Log
|
||||
// FIXME ugly hack for debug to build should use logmanager
|
||||
//#define INFO_LOG if( g_Config.iLog & CONF_LOG ) __Log
|
||||
//#define PRIM_LOG if( g_Config.iLog & CONF_PRIMLOG ) __Log
|
||||
#define INFO_LOG __Log
|
||||
#define PRIM_LOG __Log
|
||||
#define DEBUG_LOG __Log
|
||||
#else
|
||||
#define INFO_LOG(...)
|
||||
#define PRIM_LOG(...)
|
||||
#define DEBUG_LOG(...)
|
||||
#define INFO_LOG(...)
|
||||
#define PRIM_LOG(...)
|
||||
#define DEBUG_LOG(...)
|
||||
#endif
|
||||
///////////////////////////////////
|
||||
|
||||
|
||||
#endif // _VIDEOCOMMON_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue