SUCCEEDED function Null safety

bool SUCCEEDED(
  1. int result
)

Provides a generic test for success on any status value.

Implementation

//
// #define SUCCEEDED(hr) (((HRESULT)(hr)) >= 0)
bool SUCCEEDED(int result) => result >= 0;