#ifndef shaveIO_h #define shaveIO_h // Shave and a Haircut // (c) 2019 Epic Games // US Patent 6720962 #include #include // // Carbon apps on OSX don't understand 'cerr', so we have to work around it. // #ifdef OSMac_ #include class shaveCERR { public: shaveCERR& operator<<(ostream& (*pf)(ostream&)) { return *this; } shaveCERR& operator<<(const char* str) { return *this; } shaveCERR& operator<<(MString str) { return *this; } shaveCERR& operator<<(int) { return *this; } shaveCERR& operator<<(unsigned int) { return *this; } shaveCERR& operator<<(float) { return *this; } }; static shaveCERR cmsg; #else #define cmsg cerr #endif #endif