bsnes-libretro/nall/property.hpp
byuu 1e626e75ef v109.3
Fixed crash when idling with the snow effect enabled.
Added Android target to libretro port [rtretiakov]
Various nall library improvements.
2019-09-13 22:15:11 +09:00

14 lines
586 B
C++

#if !defined(property)
#define property1(declaration) public: declaration
#define property2(declaration, getter) public: __declspec(property(get=getter)) declaration; protected: declaration##_
#define property3(declaration, getter, setter) public: __declspec(property(get=getter, put=setter)) declaration; protected: declaration##_
#define property_(_1, _2, _3, name, ...) name
#define property(...) property_(__VA_ARGS__, property3, property2, property1)(__VA_ARGS__)
#else
#undef property1
#undef property2
#undef property3
#undef property_
#undef property
#endif