a4f26594f0
* 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.
11 lines
219 B
C++
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);
|
|
}
|