diff --git a/a8/a8.h b/a8/a8.h index 7471987..b784f17 100644 --- a/a8/a8.h +++ b/a8/a8.h @@ -40,4 +40,13 @@ __VA_ARGS__ \ }; \ template<> constexpr const char* GetEnumString() { return #__VA_ARGS__; }; +#define A8_MAKE_ANON_STRUCT_SHARED(...) \ +[] () \ +{ \ +struct Context \ +{ \ + __VA_ARGS__ \ +}; \ +return std::make_shared(Context);}() + const float A8_PI = 3.1415926f;