aboutsummaryrefslogtreecommitdiff
path: root/c/util.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-22 01:02:34 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-22 01:02:34 +0200
commit28b87e4d9c60b49d46b03a19b7b83e23e222087a (patch)
tree1f0a71ca09f04eac51fdabf2e8cfabc87a6e02a3 /c/util.h
parent801c10f07d1c92e1b1b89d8a30cb0cf86745de31 (diff)
downloadEpisodeBrowser-28b87e4d9c60b49d46b03a19b7b83e23e222087a.tar.gz
Handle exceptions in fetching thread.
Diffstat (limited to 'c/util.h')
-rw-r--r--c/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/c/util.h b/c/util.h
index d233ce1..1d8d222 100644
--- a/c/util.h
+++ b/c/util.h
@@ -4,6 +4,12 @@
#include <algorithm>
#include <cstring>
#include <memory>
+#include <SWI-Prolog.h>
+#include <windows.h>
+
+#define CAT(a, b) a##b
+#define APPLY(a, ...) a(__VA_ARGS__)
+#define UNUSED APPLY(CAT, unused_, __COUNTER__)
/* Format static wide string. */
template<size_t N, typename... T>