practjin Posted December 29, 2013 Share Posted December 29, 2013 (edited) Hi~ I've been finding about UT_ERROR_ABOART but, I couldn't find anymore what does it actually do in cookMySop function. if (lockInputs(context) >= UT_ERROR_ABOART) return error(); What I've found is just declared in UT_Error.h, but that's it. So, Could you tell me what is exactly UT_ERROR_ABOART? Edited December 29, 2013 by practjin Quote Link to comment Share on other sites More sharing options...
practjin Posted December 29, 2013 Author Share Posted December 29, 2013 (edited) Ah.. I found that the return type of lockInputs(context) in cookMySop function is OP_ERROR has many of enumerated type. UT_ERROR_ABOART is also enumerated type, so I thinks the both of two enumerated types could compare to each other. Edited December 29, 2013 by practjin Quote Link to comment Share on other sites More sharing options...
malexander Posted December 30, 2013 Share Posted December 30, 2013 if (lockInputs(context) >= UT_ERROR_ABORT) return error(); This is telling you that one of the inputs failed to cook, and there is no way your cook can proceed. OP_ERROR is typedef'ed to UT_ErrorSeverity, which is the enum that UT_ERROR_ABORT belongs to, so they can be safely compared. Quote Link to comment Share on other sites More sharing options...
practjin Posted January 1, 2014 Author Share Posted January 1, 2014 Ahha! Thanks a lot Mark!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.