From 05ae8976a8e1ab5411058de244c4e2fcc87ec369 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Wed, 12 Mar 2025 20:47:57 +0530 Subject: Refactor MainWindow into InputMediator --- include/utils.hpp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 include/utils.hpp (limited to 'include/utils.hpp') diff --git a/include/utils.hpp b/include/utils.hpp new file mode 100644 index 0000000..65667f7 --- /dev/null +++ b/include/utils.hpp @@ -0,0 +1,5 @@ + +#define DELEGATE(OBJ, METHOD, METHOD_AS) \ + template decltype(auto) METHOD_AS(Args &&...args) { \ + return OBJ->METHOD(std::forward(args)...); \ + } -- cgit v1.3.1