summaryrefslogtreecommitdiff
path: root/src/util/typedef.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/typedef.h')
-rw-r--r--src/util/typedef.h4
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>