10. EFI_STATUS 타입 과 EFI_ERROR 매크로
if (!EFI_ERROR(Status) {
...
} else {
...
}#define EFI_ERROR(A) RETURN_ERROR(A)
...
/**
Returns TRUE if a specified RETURN_STATUS code is an error code.
This function returns TRUE if StatusCode has the high bit set. Otherwise, FALSE is returned.
@param StatusCode The status code value to evaluate.
@retval TRUE The high bit of StatusCode is set.
@retval FALSE The high bit of StatusCode is clear.
**/
#define RETURN_ERROR(StatusCode) (((INTN)(RETURN_STATUS)(StatusCode)) < 0)
...
//
// Status codes common to all execution phases
//
typedef UINTN RETURN_STATUS;Last updated