#include <iostream>
#define property(T, x) private : T m_## x; \
public : T get_## x () { return m_## x;} \
void set_## x (T value) { m_## x = value; }
class foo {
public:
property(int, count);
property(float, size);
};
int main() {
foo f;
f.set_count(10);
std::cout << f.get_count() << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKI2RlZmluZSBwcm9wZXJ0eShULCB4KSBwcml2YXRlIDogVCBtXyMjIHg7IFwKcHVibGljIDogVCBnZXRfIyMgeCAoKSB7IHJldHVybiBtXyMjIHg7fSBcCnZvaWQgc2V0XyMjIHggKFQgdmFsdWUpIHsgbV8jIyB4ID0gdmFsdWU7IH0KCmNsYXNzIGZvbyB7IApwdWJsaWM6IAogIHByb3BlcnR5KGludCwgY291bnQpOwogIHByb3BlcnR5KGZsb2F0LCBzaXplKTsKfTsKCmludCBtYWluKCkgewoJZm9vIGY7CiAgICAgICAgZi5zZXRfY291bnQoMTApOwogICAgICAgIHN0ZDo6Y291dCA8PCBmLmdldF9jb3VudCgpIDw8IHN0ZDo6ZW5kbDsKCXJldHVybiAwOwp9