winpty/agent/SmallRect.cc
Ryan Prichard a4f26594f0 Various changes intended to help with debugging.
* Replace Buffer::isEof with Buffer::eof so I can use the agent-specific
   ASSERT macro instead of the standard assert().

 * If an API call in Win32Console fails, print a message using Trace.

 * Add Coord::toString and SmallRect::toString functions.
2012-03-15 01:59:12 -07:00

11 lines
219 B
C++

#include "SmallRect.h"
#include <stdio.h>
std::string SmallRect::toString() const
{
char ret[64];
sprintf(ret, "(x=%d,y=%d,w=%d,h=%d)",
Left, Top, width(), height());
return std::string(ret);
}