blob: 1bd99f9ece5d38a36e450893cff6d6599a9ae795 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef shaveIO_h
#define shaveIO_h
// Shave and a Haircut
// (c) 2019 Epic Games
// US Patent 6720962
#include <maya/MFStream.h>
#include <maya/MIOStream.h>
//
// Carbon apps on OSX don't understand 'cerr', so we have to work around it.
//
#ifdef OSMac_
#include <maya/MString.h>
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
|