{"sha":"41446a20a734299caf9a20210c3b6bbb4250e35d","node_id":"MDY6Q29tbWl0MzU2ODEzNzY6NDE0NDZhMjBhNzM0Mjk5Y2FmOWEyMDIxMGMzYjZiYmI0MjUwZTM1ZA==","commit":{"author":{"name":"Felix Petriconi","email":"FelixPetriconi@users.noreply.github.com","date":"2019-08-17T21:28:36Z"},"committer":{"name":"GitHub","email":"noreply@github.com","date":"2019-08-17T21:28:36Z"},"message":"Merge pull request #280 from FelixPetriconi/Fix279\n\nFix279","tree":{"sha":"a4f05f5ce0d259cf00b32cca772e5136aac5b9b6","url":"https://api.github.com/repos/stlab/stlab/git/trees/a4f05f5ce0d259cf00b32cca772e5136aac5b9b6"},"url":"https://api.github.com/repos/stlab/stlab/git/commits/41446a20a734299caf9a20210c3b6bbb4250e35d","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJdWHGECRBK7hj4Ov3rIwAAdHIIABq7QHmzZZ1Kyar5F35vMlKj\nnXN0uAsIayRnVwCFkOxV3gIElG0Yg6J/z94NeIo66mJRE0VEmQkQz+Dz4nhX5EeW\nU8lXBiINYrolJaVX/FmRHqcKjzq0xnmqikB8cxZzYfYcNpZ+3aQxrhTnBan7jyQ+\nrxqXhXUpvTUb+c5xEGb0N9d1RanLVSEwyAIG4aOu0klG0XPwxDHXDMsEHViuyqIg\ndVktt80GlkXc431CbNL/+01oF50b3GFHFq6wZxX9L8K9cAq29+8NCX7LVsRdOvM+\n8KcKVhA//QfjLXx/SLrW+6+8FhShdzPpChMmLwWX5ErZCTUHWU5HfMr+JgDXDL4=\n=eGbJ\n-----END PGP SIGNATURE-----\n","payload":"tree a4f05f5ce0d259cf00b32cca772e5136aac5b9b6\nparent 7e07f02997fd7fb77a97fd02adb8eb8f33b04b10\nparent 67a797469a5685b104f61050f67090fbb85ce863\nauthor Felix Petriconi <FelixPetriconi@users.noreply.github.com> 1566077316 +0200\ncommitter GitHub <noreply@github.com> 1566077316 +0200\n\nMerge pull request #280 from FelixPetriconi/Fix279\n\nFix279","verified_at":"2024-01-16T19:59:59Z"}},"url":"https://api.github.com/repos/stlab/stlab/commits/41446a20a734299caf9a20210c3b6bbb4250e35d","html_url":"https://github.com/stlab/stlab/commit/41446a20a734299caf9a20210c3b6bbb4250e35d","comments_url":"https://api.github.com/repos/stlab/stlab/commits/41446a20a734299caf9a20210c3b6bbb4250e35d/comments","author":{"login":"FelixPetriconi","id":612377,"node_id":"MDQ6VXNlcjYxMjM3Nw==","avatar_url":"https://avatars.githubusercontent.com/u/612377?v=4","gravatar_id":"","url":"https://api.github.com/users/FelixPetriconi","html_url":"https://github.com/FelixPetriconi","followers_url":"https://api.github.com/users/FelixPetriconi/followers","following_url":"https://api.github.com/users/FelixPetriconi/following{/other_user}","gists_url":"https://api.github.com/users/FelixPetriconi/gists{/gist_id}","starred_url":"https://api.github.com/users/FelixPetriconi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelixPetriconi/subscriptions","organizations_url":"https://api.github.com/users/FelixPetriconi/orgs","repos_url":"https://api.github.com/users/FelixPetriconi/repos","events_url":"https://api.github.com/users/FelixPetriconi/events{/privacy}","received_events_url":"https://api.github.com/users/FelixPetriconi/received_events","type":"User","user_view_type":"public","site_admin":false},"committer":{"login":"web-flow","id":19864447,"node_id":"MDQ6VXNlcjE5ODY0NDQ3","avatar_url":"https://avatars.githubusercontent.com/u/19864447?v=4","gravatar_id":"","url":"https://api.github.com/users/web-flow","html_url":"https://github.com/web-flow","followers_url":"https://api.github.com/users/web-flow/followers","following_url":"https://api.github.com/users/web-flow/following{/other_user}","gists_url":"https://api.github.com/users/web-flow/gists{/gist_id}","starred_url":"https://api.github.com/users/web-flow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-flow/subscriptions","organizations_url":"https://api.github.com/users/web-flow/orgs","repos_url":"https://api.github.com/users/web-flow/repos","events_url":"https://api.github.com/users/web-flow/events{/privacy}","received_events_url":"https://api.github.com/users/web-flow/received_events","type":"User","user_view_type":"public","site_admin":false},"parents":[{"sha":"7e07f02997fd7fb77a97fd02adb8eb8f33b04b10","url":"https://api.github.com/repos/stlab/stlab/commits/7e07f02997fd7fb77a97fd02adb8eb8f33b04b10","html_url":"https://github.com/stlab/stlab/commit/7e07f02997fd7fb77a97fd02adb8eb8f33b04b10"},{"sha":"67a797469a5685b104f61050f67090fbb85ce863","url":"https://api.github.com/repos/stlab/stlab/commits/67a797469a5685b104f61050f67090fbb85ce863","html_url":"https://github.com/stlab/stlab/commit/67a797469a5685b104f61050f67090fbb85ce863"}],"stats":{"total":123,"additions":64,"deletions":59},"files":[{"sha":"346cb2bebf637e57e9624cf4a4987b1fe6b7b53b","filename":"stlab/concurrency/config.hpp","status":"modified","additions":14,"deletions":14,"changes":28,"blob_url":"https://github.com/stlab/stlab/blob/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Fconfig.hpp","raw_url":"https://github.com/stlab/stlab/raw/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Fconfig.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/stlab%2Fconcurrency%2Fconfig.hpp?ref=41446a20a734299caf9a20210c3b6bbb4250e35d","patch":"@@ -22,19 +22,19 @@\n \n /**************************************************************************************************/\n \n-#define STLAB_TASK_SYSTEM_PORTABLE      0\n-#define STLAB_TASK_SYSTEM_LIBDISPATCH   1\n-#define STLAB_TASK_SYSTEM_EMSCRIPTEN    2\n-#define STLAB_TASK_SYSTEM_PNACL         3\n-#define STLAB_TASK_SYSTEM_WINDOWS       4\n+#define STLAB_TASK_SYSTEM_PORTABLE()      0\n+#define STLAB_TASK_SYSTEM_LIBDISPATCH()   1\n+#define STLAB_TASK_SYSTEM_EMSCRIPTEN()    2\n+#define STLAB_TASK_SYSTEM_PNACL()         3\n+#define STLAB_TASK_SYSTEM_WINDOWS()       4\n \n #if __APPLE__\n \n #ifndef STLAB_TASK_SYSTEM\n-#define STLAB_TASK_SYSTEM STLAB_TASK_SYSTEM_LIBDISPATCH\n+#define STLAB_TASK_SYSTEM() STLAB_TASK_SYSTEM_LIBDISPATCH()\n \n #if __cplusplus >= 201703L\n-#define STLAB_CPP_VERSION 17\n+#define STLAB_CPP_VERSION() 17\n #endif\n \n #endif\n@@ -47,38 +47,38 @@\n #elif __EMSCRIPTEN__\n \n #ifndef STLAB_TASK_SYSTEM\n-#define STLAB_TASK_SYSTEM STLAB_TASK_SYSTEM_EMSCRIPTEN\n+#define STLAB_TASK_SYSTEM() STLAB_TASK_SYSTEM_EMSCRIPTEN()\n #endif\n \n #elif __pnacl__\n \n #ifndef STLAB_TASK_SYSTEM\n-#define STLAB_TASK_SYSTEM STLAB_TASK_SYSTEM_PNACL\n+#define STLAB_TASK_SYSTEM() STLAB_TASK_SYSTEM_PNACL()\n #endif\n \n #elif _MSC_VER\n \n #ifndef STLAB_TASK_SYSTEM\n-#define STLAB_TASK_SYSTEM STLAB_TASK_SYSTEM_WINDOWS\n+#define STLAB_TASK_SYSTEM() STLAB_TASK_SYSTEM_WINDOWS()\n #endif\n \n #if _MSC_FULL_VER >= 191225830 && _MSVC_LANG >= 201403L\n-#define STLAB_CPP_VERSION 17\n+#define STLAB_CPP_VERSION() 17\n #endif\n \n #endif\n \n // Default configuration\n \n #ifndef STLAB_TASK_SYSTEM\n-#define STLAB_TASK_SYSTEM STLAB_TASK_SYSTEM_PORTABLE\n+#define STLAB_TASK_SYSTEM() STLAB_TASK_SYSTEM_PORTABLE()\n #if __cplusplus >= 201703L\n-#define STLAB_CPP_VERSION 17\n+#define STLAB_CPP_VERSION() 17\n #endif\n #endif\n \n #ifndef STLAB_CPP_VERSION\n-#define STLAB_CPP_VERSION 17\n+#define STLAB_CPP_VERSION() 17\n #endif\n \n #ifndef STLAB_FUTURE_COROUTINES"},{"sha":"f84ab9c3d9affee762ff57632c0bc23d17fe0f70","filename":"stlab/concurrency/default_executor.hpp","status":"modified","additions":12,"deletions":12,"changes":24,"blob_url":"https://github.com/stlab/stlab/blob/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Fdefault_executor.hpp","raw_url":"https://github.com/stlab/stlab/raw/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Fdefault_executor.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/stlab%2Fconcurrency%2Fdefault_executor.hpp?ref=41446a20a734299caf9a20210c3b6bbb4250e35d","patch":"@@ -16,18 +16,18 @@\n #include <chrono>\n #include <functional>\n \n-#if STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_LIBDISPATCH\n+#if STLAB_TASK_SYSTEM () == STLAB_TASK_SYSTEM_LIBDISPATCH()\n #include <dispatch/dispatch.h>\n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_EMSCRIPTEN\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_EMSCRIPTEN()\n #include <emscripten.h>\n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_PNACL\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_PNACL()\n #include <ppapi/cpp/completion_callback.h>\n #include <ppapi/cpp/core.h>\n #include <ppapi/cpp/module.h>\n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_WINDOWS\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_WINDOWS()\n #include <Windows.h>\n #include <memory>\n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_PORTABLE\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_PORTABLE()\n #include <array>\n #include <algorithm>\n #include <atomic>\n@@ -66,7 +66,7 @@ enum class executor_priority\n \n /**************************************************************************************************/\n \n-#if STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_LIBDISPATCH\n+#if STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_LIBDISPATCH()\n \n constexpr auto platform_priority(executor_priority p)\n {\n@@ -117,7 +117,7 @@ struct executor_type {\n     }\n };\n \n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_EMSCRIPTEN\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_EMSCRIPTEN()\n \n template <executor_priority P = executor_priority::medium>\n struct executor_type {\n@@ -138,7 +138,7 @@ struct executor_type {\n     }\n };\n \n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_PNACL\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_PNACL()\n \n template <executor_priority P = executor_priority::medium>\n struct executor_type {\n@@ -160,7 +160,7 @@ struct executor_type {\n     }\n };\n \n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_WINDOWS\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_WINDOWS()\n \n constexpr auto platform_priority(executor_priority p)\n {\n@@ -232,7 +232,7 @@ class task_system {\n /**************************************************************************************************/\n /**************************************************************************************************/\n \n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_PORTABLE\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_PORTABLE()\n \n \n class notification_queue {\n@@ -385,8 +385,8 @@ struct task_system\n \n #endif\n \n-#if (STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_PORTABLE) || \\\n-    (STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_WINDOWS)\n+#if (STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_PORTABLE()) || \\\n+    (STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_WINDOWS())\n \n template <executor_priority P = executor_priority::medium>\n struct executor_type {"},{"sha":"b6e417fc426cd57f062a9b331120d7dd874e3ad6","filename":"stlab/concurrency/future.hpp","status":"modified","additions":5,"deletions":2,"changes":7,"blob_url":"https://github.com/stlab/stlab/blob/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Ffuture.hpp","raw_url":"https://github.com/stlab/stlab/raw/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Ffuture.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/stlab%2Fconcurrency%2Ffuture.hpp?ref=41446a20a734299caf9a20210c3b6bbb4250e35d","patch":"@@ -31,13 +31,16 @@\n // support for the channels tests\n #ifdef __has_include\n #if __has_include(<experimental/coroutine>) && STLAB_FUTURE_COROUTINES\n-#define STLAB_FUTURE_COROUTINES_SUPPORT\n+#define STLAB_FUTURE_COROUTINES_SUPPORT() 1\n #include <experimental/coroutine>\n #include <stlab/concurrency/default_executor.hpp>\n #include <stlab/concurrency/immediate_executor.hpp>\n #endif\n #endif\n \n+#if !defined(STLAB_FUTURE_COROUTINES_SUPPORT)\n+#define STLAB_FUTURE_COROUTINES_SUPPORT() 0\n+#endif\n /**************************************************************************************************/\n \n namespace stlab {\n@@ -1860,7 +1863,7 @@ auto shared_base<void>::reduce(future<future<R>>&& r) -> future<R> {\n \n /**************************************************************************************************/\n \n-#ifdef STLAB_FUTURE_COROUTINES_SUPPORT\n+#if STLAB_FUTURE_COROUTINES_SUPPORT() == 1\n \n template <typename T, typename... Args>\n struct std::experimental::coroutine_traits<stlab::future<T>, Args...> {"},{"sha":"da53eb6723fbdf30279e54d606dd65e2c592ac3a","filename":"stlab/concurrency/optional.hpp","status":"modified","additions":10,"deletions":10,"changes":20,"blob_url":"https://github.com/stlab/stlab/blob/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Foptional.hpp","raw_url":"https://github.com/stlab/stlab/raw/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Foptional.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/stlab%2Fconcurrency%2Foptional.hpp?ref=41446a20a734299caf9a20210c3b6bbb4250e35d","patch":"@@ -11,9 +11,9 @@\n \n #include <stlab/concurrency/config.hpp>\n \n-#define STLAB_STD_OPTIONAL 1\n-#define STLAB_STD_EXPERIMENTAL_OPTIONAL 2\n-#define STLAB_BOOST_OPTIONAL 3\n+#define STLAB_STD_OPTIONAL() 1\n+#define STLAB_STD_EXPERIMENTAL_OPTIONAL() 2\n+#define STLAB_BOOST_OPTIONAL() 3\n \n // The library can be used with boost::optinal, std::experimental::optional or std::optional.\n // Without any additional define, it uses the versions from the standard, if it is available.\n@@ -22,43 +22,43 @@\n \n #ifdef STLAB_FORCE_BOOST_OPTIONAL\n #include <boost/optional.hpp>\n-#define STLAB_OPTIONAL STLAB_BOOST_OPTIONAL\n+#define STLAB_OPTIONAL() STLAB_BOOST_OPTIONAL()\n #endif\n \n #ifndef STLAB_OPTIONAL\n #ifdef __has_include                                     // Check if __has_include is present\n-#if __has_include(<optional>) && STLAB_CPP_VERSION == 17 // Check for a standard library\n+#if __has_include(<optional>) && STLAB_CPP_VERSION() == 17 // Check for a standard library\n #include <optional>\n #define STLAB_OPTIONAL STLAB_STD_OPTIONAL\n #elif __has_include(<experimental/optional>) // Check for an experimental version\n #include <experimental/optional>\n-#define STLAB_OPTIONAL STLAB_STD_EXPERIMENTAL_OPTIONAL\n+#define STLAB_OPTIONAL() STLAB_STD_EXPERIMENTAL_OPTIONAL()\n #endif\n #endif\n #endif\n \n #ifndef STLAB_OPTIONAL\n #include <boost/optional.hpp>\n-#define STLAB_OPTIONAL STLAB_BOOST_OPTIONAL\n+#define STLAB_OPTIONAL() STLAB_BOOST_OPTIONAL()\n #endif\n \n namespace stlab {\n \n-#if STLAB_OPTIONAL == STLAB_STD_OPTIONAL\n+#if STLAB_OPTIONAL() == STLAB_STD_OPTIONAL()\n \n template <typename T>\n using optional = std::optional<T>;\n \n constexpr std::nullopt_t nullopt{std::nullopt};\n \n-#elif STLAB_OPTIONAL == STLAB_STD_EXPERIMENTAL_OPTIONAL\n+#elif STLAB_OPTIONAL() == STLAB_STD_EXPERIMENTAL_OPTIONAL()\n \n template <typename T>\n using optional = std::experimental::optional<T>;\n \n constexpr std::experimental::nullopt_t nullopt{std::experimental::nullopt};\n \n-#elif STLAB_OPTIONAL == STLAB_BOOST_OPTIONAL\n+#elif STLAB_OPTIONAL() == STLAB_BOOST_OPTIONAL()\n \n template <typename T>\n using optional = boost::optional<T>;"},{"sha":"825b7fe329c2256d75ff82ad400426d30f8ee640","filename":"stlab/concurrency/serial_queue.hpp","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stlab/stlab/blob/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Fserial_queue.hpp","raw_url":"https://github.com/stlab/stlab/raw/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Fserial_queue.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/stlab%2Fconcurrency%2Fserial_queue.hpp?ref=41446a20a734299caf9a20210c3b6bbb4250e35d","patch":"@@ -19,7 +19,7 @@\n #include <stlab/scope.hpp>\n \n #ifndef STLAB_DISABLE_FUTURE_COROUTINES\n-#define STLAB_DISABLE_FUTURE_COROUTINES\n+#define STLAB_DISABLE_FUTURE_COROUTINES()\n #endif\n \n #include <stlab/concurrency/future.hpp>"},{"sha":"87bd4594b746ad0356eb113b591df0ed447a428e","filename":"stlab/concurrency/system_timer.hpp","status":"modified","additions":11,"deletions":11,"changes":22,"blob_url":"https://github.com/stlab/stlab/blob/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Fsystem_timer.hpp","raw_url":"https://github.com/stlab/stlab/raw/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Fsystem_timer.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/stlab%2Fconcurrency%2Fsystem_timer.hpp?ref=41446a20a734299caf9a20210c3b6bbb4250e35d","patch":"@@ -17,18 +17,18 @@\n #include <chrono>\n #include <functional>\n \n-#if STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_LIBDISPATCH\n+#if STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_LIBDISPATCH()\n #include <dispatch/dispatch.h>\n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_EMSCRIPTEN\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_EMSCRIPTEN()\n #include <emscripten.h>\n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_PNACL\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_PNACL()\n #include <ppapi/cpp/completion_callback.h>\n #include <ppapi/cpp/core.h>\n #include <ppapi/cpp/module.h>\n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_WINDOWS\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_WINDOWS()\n #include <Windows.h>\n #include <memory>\n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_PORTABLE\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_PORTABLE()\n #include <algorithm>\n #include <condition_variable>\n #include <thread>\n@@ -54,7 +54,7 @@ namespace detail {\n \n /**************************************************************************************************/\n \n-#if STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_LIBDISPATCH\n+#if STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_LIBDISPATCH()\n \n struct system_timer_type {\n     using result_type = void;\n@@ -84,9 +84,9 @@ struct system_timer_type {\n     }\n };\n \n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_EMSCRIPTEN\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_EMSCRIPTEN()\n \n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_WINDOWS\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_WINDOWS()\n \n class system_timer {\n     PTP_POOL _pool = nullptr;\n@@ -169,7 +169,7 @@ class system_timer {\n     }\n };\n \n-#elif STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_PORTABLE\n+#elif STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_PORTABLE()\n \n class system_timer {\n     using element_t = std::pair<std::chrono::steady_clock::time_point, task<void()>>;\n@@ -246,8 +246,8 @@ class system_timer {\n \n #endif\n \n-#if (STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_WINDOWS) || \\\n-    (STLAB_TASK_SYSTEM == STLAB_TASK_SYSTEM_PORTABLE)\n+#if (STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_WINDOWS()) || \\\n+    (STLAB_TASK_SYSTEM() == STLAB_TASK_SYSTEM_PORTABLE())\n \n struct system_timer_type {\n     using result_type = void;"},{"sha":"74fc9bae7cd10dd5f8e53e804e224565b0188379","filename":"stlab/concurrency/task.hpp","status":"modified","additions":3,"deletions":1,"changes":4,"blob_url":"https://github.com/stlab/stlab/blob/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Ftask.hpp","raw_url":"https://github.com/stlab/stlab/raw/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Ftask.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/stlab%2Fconcurrency%2Ftask.hpp?ref=41446a20a734299caf9a20210c3b6bbb4250e35d","patch":"@@ -16,6 +16,8 @@\n #include <type_traits>\n #include <utility>\n \n+#include <stlab/concurrency/config.hpp>\n+\n /**************************************************************************************************/\n \n namespace stlab {\n@@ -223,7 +225,7 @@ class task<R(Args...)> {\n     friend inline bool operator!=(std::nullptr_t, const task& x) { return static_cast<bool>(x); }\n };\n \n-#if STLAB_CPP_VERSION < 17\n+#if STLAB_CPP_VERSION() < 17\n // In C++17 constexpr implies inline and these definitions are deprecated\n \n "},{"sha":"4688d8b043c2a474fbc2f7ddb4f858368766789f","filename":"stlab/concurrency/variant.hpp","status":"modified","additions":8,"deletions":8,"changes":16,"blob_url":"https://github.com/stlab/stlab/blob/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Fvariant.hpp","raw_url":"https://github.com/stlab/stlab/raw/41446a20a734299caf9a20210c3b6bbb4250e35d/stlab%2Fconcurrency%2Fvariant.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/stlab%2Fconcurrency%2Fvariant.hpp?ref=41446a20a734299caf9a20210c3b6bbb4250e35d","patch":"@@ -11,8 +11,8 @@\n \n #include <stlab/concurrency/config.hpp>\n \n-#define STLAB_STD_VARIANT 1\n-#define STLAB_BOOST_VARIANT 2\n+#define STLAB_STD_VARIANT() 1\n+#define STLAB_BOOST_VARIANT() 2\n \n // The library can be used with boost::variant or std::variant.\n // Without any additional define, it uses the versions from the standard, if it is available.\n@@ -21,25 +21,25 @@\n \n #ifdef STLAB_FORCE_BOOST_VARIANT\n #include <boost/variant.hpp>\n-#define STLAB_VARIANT STLAB_BOOST_VARIANT\n+#define STLAB_VARIANT() STLAB_BOOST_VARIANT()\n #endif\n \n #ifndef STLAB_VARIANT\n #ifdef __has_include\n-#if __has_include(<variant>) && STLAB_CPP_VERSION == 17\n+#if __has_include(<variant>) && STLAB_CPP_VERSION() == 17\n #include <variant>\n-#define STLAB_VARIANT STLAB_STD_VARIANT\n+#define STLAB_VARIANT() STLAB_STD_VARIANT()\n #endif\n #endif\n #endif\n \n #ifndef STLAB_VARIANT\n #include <boost/variant.hpp>\n-#define STLAB_VARIANT STLAB_BOOST_VARIANT\n+#define STLAB_VARIANT() STLAB_BOOST_VARIANT()\n #endif\n \n namespace stlab {\n-#if STLAB_VARIANT == STLAB_STD_VARIANT\n+#if STLAB_VARIANT() == STLAB_STD_VARIANT()\n \n template <typename... T>\n using variant = std::variant<T...>;\n@@ -69,7 +69,7 @@ constexpr auto index(const std::variant<Types...>& v) {\n     return v.index();\n }\n \n-#elif STLAB_VARIANT == STLAB_BOOST_VARIANT\n+#elif STLAB_VARIANT() == STLAB_BOOST_VARIANT()\n \n template <typename... T>\n using variant = boost::variant<T...>;"}]}