#include <stdio.h>
#define METHOD(class, name, rtype, ...) rtype class##_##name (class *instance, __VA_ARGS__)
typedef struct Foo { int bar; } Foo;
METHOD(Foo, create, void, int baz) {
instance->bar = baz;
}
int main(void) {
Foo foo;
Foo_create(&foo, 1488);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgojZGVmaW5lIE1FVEhPRChjbGFzcywgbmFtZSwgcnR5cGUsIC4uLikgcnR5cGUgY2xhc3MjI18jI25hbWUgKGNsYXNzICppbnN0YW5jZSwgX19WQV9BUkdTX18pCgp0eXBlZGVmIHN0cnVjdCBGb28geyBpbnQgYmFyOyB9IEZvbzsKCk1FVEhPRChGb28sIGNyZWF0ZSwgdm9pZCwgaW50IGJheikgewogICAgaW5zdGFuY2UtPmJhciA9IGJhejsKICAgIHByaW50ZigiYmF6IGlzICVkXG4iLCBiYXopOwp9CgppbnQgbWFpbih2b2lkKSB7CiAgICBGb28gZm9vOwoJRm9vX2NyZWF0ZSgmZm9vLCAxNDg4KTsKCXJldHVybiAwOwp9Cg==