diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-12 20:47:57 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-12 21:06:52 +0530 |
| commit | 05ae8976a8e1ab5411058de244c4e2fcc87ec369 (patch) | |
| tree | cb3661ed66b9aeb6b78818228d4ec4785dbf27e1 /include/utils.hpp | |
| parent | d46cf6e12452261c6aaf498dddf8e1176d349d6e (diff) | |
| download | null-browser-05ae8976a8e1ab5411058de244c4e2fcc87ec369.tar.gz null-browser-05ae8976a8e1ab5411058de244c4e2fcc87ec369.zip | |
Refactor MainWindow into InputMediator
Diffstat (limited to 'include/utils.hpp')
| -rw-r--r-- | include/utils.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 <typename... Args> decltype(auto) METHOD_AS(Args &&...args) { \ + return OBJ->METHOD(std::forward<Args>(args)...); \ + } |
