Sat, 23 Jul 2022 01:38:06 +0300
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>;