Cycling74 / max-sdk

Software Development Kit for Max by Cycling '74
Other
262 stars 57 forks source link

Question about CLASS_ATTR_ACCESSORS #60

Closed jcelerier closed 1 year ago

jcelerier commented 1 year ago

Hello, I was strolling through the source of ext_obex_util.h and I noticed the following:

#define CLASS_ATTR_ACCESSORS(c,attrname,getter,setter) \
    { t_object *theattr=(t_object *)class_attr_get(c,gensym(attrname)); \
        object_method(theattr,gensym("setmethod"),USESYM(get),getter); \
        object_method(theattr,gensym("setmethod"),USESYM(set),setter); }

shouldn't the first gensym be getmethod instead of setmethod?

jcelerier commented 1 year ago

nevermind, read the rest and it makes sense