diff options
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> |
