Add SIG macro

Sat, 23 Jul 2022 01:38:06 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Sat, 23 Jul 2022 01:38:06 +0300
changeset 339
4787d05e9c89
parent 333
07e65a4c6611
child 340
e17e07661f4c

Add SIG macro

src/basics.h file | annotate | diff | comparison | revisions
--- a/src/basics.h	Mon Jul 04 19:53:13 2022 +0300
+++ b/src/basics.h	Sat Jul 23 01:38:06 2022 +0300
@@ -40,6 +40,7 @@
 #include <glm/glm.hpp>
 #include "src/geometry.h"
 #include "src/typeconversions.h"
+#define SIG(A, B) (A), &std::decay_t<decltype(*(A))>::B
 
 template<typename T>
 using opt = std::optional<T>;

mercurial