Retro68/App2/MacUtils.h
Wolfgang Thaller f370137c88 readline!
2012-03-30 10:01:55 +02:00

20 lines
209 B
C++

#include <Quickdraw.h>
class PortSetter
{
GrafPtr save;
public:
PortSetter(GrafPtr port)
{
::GetPort(&save);
::SetPort(port);
}
~PortSetter()
{
::SetPort(save);
}
};