diff options
| author | aura <nw@moneybot.cc> | 2026-03-17 12:04:30 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-17 12:04:30 +0100 |
| commit | a156bc15880e9e250c9c40f0dde431e077109dc1 (patch) | |
| tree | 64b6461b0d0e9cad6ff7fdcfba563e103fad9067 /src/util/typedef.h | |
| parent | 991352b0d2767e6bd1a46f554db4ac9d208c13ad (diff) | |
multi select
Diffstat (limited to 'src/util/typedef.h')
| -rw-r--r-- | src/util/typedef.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/typedef.h b/src/util/typedef.h index 53c4010..4a28624 100644 --- a/src/util/typedef.h +++ b/src/util/typedef.h @@ -29,7 +29,11 @@ typedef double F64; typedef unsigned long PTR; +// lambda macro - captures all by ref #define fn( ... ) [&]( __VA_ARGS__ ) +// lambda macro - captures all by copy +#define cfn( ... ) [=]( __VA_ARGS__ ) +// lambda macro - raw pointer func #define pfn( ... ) []( __VA_ARGS__ ) template <typename T> |
