Jump to content

What is UT_ERROR_ABORT?


Recommended Posts

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 by practjin
Link to comment
Share on other sites

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 by practjin
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...