From 28b87e4d9c60b49d46b03a19b7b83e23e222087a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 22 Aug 2022 01:02:34 +0200 Subject: Handle exceptions in fetching thread. --- c/win.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c/win.h') diff --git a/c/win.h b/c/win.h index 93b1416..3bb0d6e 100644 --- a/c/win.h +++ b/c/win.h @@ -5,6 +5,8 @@ #include #include +/* Show message box for current exception. */ +void ShowException(const wchar_t* fmt, const wchar_t* title, UINT uType = MB_ICONWARNING) noexcept; /* Run given procedure at creation of next window. */ void WithNextWindow(void (*proc)(HWND)); /* Display message box centered in main window. */ -- cgit v1.2.3