FAILED function

bool FAILED(
  1. HRESULT result
)

Provides a generic test for failure on any status value.

Implementation

//
// #define FAILED(hr) (((HRESULT)(hr)) < 0)
@pragma('vm:prefer-inline')
bool FAILED(HRESULT result) => result < 0;