add inline dump_rect

This commit is contained in:
Vincent Wei
2020-02-13 20:52:23 +08:00
parent ded48a69ea
commit af794cb523
+9 -1
View File
@@ -60,12 +60,20 @@ extern "C" {
static inline void dump_region (const CLIPRGN* rgn, const char* name)
{
_WRN_PRINTF("rcBound of %s: (%d, %d, %d, %d); size (%d x %d)\n", name,
_WRN_PRINTF("rcBound of %s (%p): (%d, %d, %d, %d); size (%d x %d)\n",
name, rgn,
rgn->rcBound.left, rgn->rcBound.top,
rgn->rcBound.right, rgn->rcBound.bottom,
RECTW(rgn->rcBound), RECTH(rgn->rcBound));
}
static inline void dump_rect (const RECT* rect, const char* name)
{
_WRN_PRINTF("rect of %s: (%d, %d, %d, %d); size (%d x %d)\n", name,
rect->left, rect->top, rect->right, rect->bottom,
RECTWP(rect), RECTHP(rect));
}
#ifdef __cplusplus
}
#endif /* __cplusplus */