| 404 | } |
| 405 | |
| 406 | static LRESULT CALLBACK windowProc (HWND h, UINT message, WPARAM wParam, LPARAM lParam) |
| 407 | { |
| 408 | if (message == WM_APP && wParam == magicWParam) |
| 409 | { |
| 410 | std::unique_ptr<std::function<void()>> f (reinterpret_cast<std::function<void()>*> (lParam)); |
| 411 | (*f)(); |
| 412 | } |
| 413 | |
| 414 | return DefWindowProc (h, message, wParam, lParam); |
| 415 | } |
| 416 | |
| 417 | static inline constexpr WPARAM magicWParam = 0xc40cc40c; |
| 418 |
nothing calls this directly
no outgoing calls
no test coverage detected