MCPcopy Create free account
hub / github.com/WinMerge/winmerge / SE

Function SE

Src/HexMergeView.cpp:33–42  ·  view source on GitHub ↗

* @brief Turn bool api result into success/error code */

Source from the content-addressed store, hash-verified

31 * @brief Turn bool api result into success/error code
32 */
33static HRESULT NTAPI SE(BOOL f)
34{
35 if (f)
36 return S_OK;
37 HRESULT hr = HRESULT_FROM_WIN32(::GetLastError());
38 ASSERT(hr != NULL);
39 if (hr == NULL)
40 hr = E_UNEXPECTED;
41 return hr;
42}
43
44
45

Callers 2

LoadFileMethod · 0.85
SaveFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected