summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat/options.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-12 17:00:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-12 17:00:37 +0200
commit0ed45348c428a950db589caa227efa86af499170 (patch)
treec24267d08b40726ccfb706da6fc88144565215ee /opentrack-compat/options.hpp
parent41c0a5169bfb6e87a48f90a2af57c03bba707470 (diff)
compat: add util header
The run_in_thread_{sync,async} functions inject a functional into a Qt event queue. The former also takes care to process void return values.
Diffstat (limited to 'opentrack-compat/options.hpp')
-rw-r--r--opentrack-compat/options.hpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/opentrack-compat/options.hpp b/opentrack-compat/options.hpp
index 78699f63..40aca2de 100644
--- a/opentrack-compat/options.hpp
+++ b/opentrack-compat/options.hpp
@@ -43,11 +43,7 @@
#include "export.hpp"
#include "slider.hpp"
-// just put them here for lack of util header
-#define progn(...) ([&]() { __VA_ARGS__ }())
-template<typename t> using mem = std::shared_ptr<t>;
-template<typename t> using ptr = std::unique_ptr<t>;
-#include "make-unique.hpp"
+#include "util.hpp"
#define OPENTRACK_CONFIG_FILENAME_KEY "settings-filename"
#define OPENTRACK_DEFAULT_CONFIG "default.ini"