From a156bc15880e9e250c9c40f0dde431e077109dc1 Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 17 Mar 2026 12:04:30 +0100 Subject: multi select --- src/util/typedef.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/util/typedef.h') 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 -- cgit v1.2.3