bsnes/hiro/core/attribute.hpp
byuu 18d2ab6435 v109.4
Rename hiro::Property to hiro::Attribute
Disable XChaCha20 CSPRNG on Android for now due to compilation issues
Add macOS IOKit joypad support [Sintendo]
2019-09-17 03:37:03 +09:00

21 lines
446 B
C++

#if defined(Hiro_Attribute)
struct Attribute {
using type = Attribute;
Attribute(const string& name, const any& value = {});
auto operator==(const Attribute& source) const -> bool;
auto operator< (const Attribute& source) const -> bool;
auto name() const -> string;
auto setValue(const any& value = {}) -> type&;
auto value() const -> any&;
private:
struct State {
string name;
mutable any value;
} state;
};
#endif