Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -define(PROPERTY_GETTER(RecType,Field), Field(Rec)->Rec#RecType.Field ).
- -define(PROPERTY_SETTER(RecType,Field), Field(Rec,Value)->Rec#RecType { Field = Value } ).
- -record(test,
- {
- field1,
- field2,
- field3
- }).
- ?PROPERTY_GETTER(test,field1).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement