#ifndef shaveError_h #define shaveError_h // Shave and a Haircut // (c) 2019 Epic Games // US Patent 6720962 #include #include #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