aboutsummaryrefslogtreecommitdiff
path: root/mayaPlug/shaveError.h
blob: 5102742074ac03d4afeb0a6cf4bfbca1f37194c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef shaveError_h
#define shaveError_h

// Shave and a Haircut
// (c) 2019 Epic Games
// US Patent 6720962

#include <maya/MGlobal.h>
#include <maya/MString.h>

#define MRptErr(st,msg) MGlobal::displayError(MString("Shave: ")+msg + ": " + st.errorString())

#define MRetErr(st,msg) { MRptErr(st,msg); return st; }

#define	MChkErr(st,msg)	if (!st) MRetErr(st,msg)

#define MChkErrVoid(st,msg) if (!st) { MRptErr(st,msg); return; }

#endif