IsOk

Function

Checks whether the status of a status object is success.

Format

bool IsOk() const;

Parameters

None

Usage Example

Create a Status object and use the IsOk API to check whether the status is success.

1
2
3
4
status = Status(Error::Code::ERROR, "Engine init model failed: new modelBackend failed");
if (!status.IsOk()) {
    return;
}

Return Value

  • true: successful
  • false: failed