Checks an hresult for success.
hresult
com
succeeded hresult => flag
An integer hresult .
flag
A boolean.
The succeeded macro checks the hresult and returns true if the it is one of the 'succeeded' values, for instance S_OK or S_FALSE .
succeeded
S_OK
S_FALSE
(succeeded S_OK) => t
(succeeded E_NOINTERFACE) => nil
check-hresult hresult hresult-equal s_ok