logRect utility

This commit is contained in:
ehouse 2008-09-09 12:20:45 +00:00
parent b72309f947
commit 462bc96868
2 changed files with 8 additions and 0 deletions

View file

@ -92,6 +92,13 @@ XP_LOGW( const XP_UCHAR* prefix, const wchar_t* arg )
XP_LOGF( "%s: %s", prefix, buf );
}
void
logRect( const char* comment, const RECT* rect )
{
XP_LOGF( "%s: %s: left=%ld,top=%ld,right=%ld,bottom=%ld", __func__,
comment, rect->left, rect->top, rect->right, rect->bottom );
}
#undef CASE_STR
#endif /* DEBUG */

View file

@ -23,6 +23,7 @@
#include "cemain.h"
const char* messageToStr( UINT message );
void logRect( const char* comment, const RECT* rect );
#ifdef DEBUG
void XP_LOGW( const XP_UCHAR* prefix, const wchar_t* arg );