winpty/agent/Coord.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

10 lines
161 B
C++

#include "Coord.h"
#include <stdio.h>
std::string Coord::toString() const
{
char ret[32];
sprintf(ret, "(%d,%d)", X, Y);
return std::string(ret);
}