YR_STATE#
-
YR_STATE(...)#
Marks a class parameter as state, and Yuanrong will automatically save and recover the state member variables of the class.
Class member variables that need to be marked as state should be decorated with YR_STATE. Constraint: YR_STATE must be declared in the public section.
class MyClass { public: int a; std::string b; YR_STATE(a, b); };