/* * Some common methods */ #define DECNEW case OM_NEW:return(handleOM_NEW(cl, obj, (struct opSet *)msg)); #define DECCONST DECNEW // obsolete #define DECDISPOSE case OM_DISPOSE:return(handleOM_DISPOSE(cl, obj, (struct opSet *)msg)); #define DECDISP DECDISPOSE // obsolete #define DECSET case OM_SET:return(handleOM_SET(cl, obj, (struct opSet *)msg)); #define DECGET case OM_GET:return(handleOM_GET(cl, obj, (struct opGet *)msg)); #define DECADDMEMBER case OM_ADDMEMBER:return(handleOM_ADDMEMBER(cl, obj, (APTR)msg)); #define DECREMMEMBER case OM_REMMEMBER:return(handleOM_REMMEMBER(cl, obj, (APTR)msg)); #define DECMMETHOD(methodid) case MUIM_##methodid:return(handleMUIM_##methodid(cl,obj,(struct MUIP_##methodid *)msg)); #define DECMETHOD(methodid) case MM_##methodid:return(handleMM_##methodid(cl,obj,(type) msg)); #define DECSMETHOD(methodid) case MM_##methodid:return(handleMM_##methodid(cl,obj,(struct MP_##methodid *)msg)); #define DECTMETHOD(methodid) case MM_##methodid:return(handleMM_##methodid(cl,obj,(Msg) msg));
/* * Some common methods */ #define DECNEW case OM_NEW:return(handleOM_NEW(cl, obj, (APTR)msg)); #define DECCONST DECNEW // obsolete #define DECDISPOSE case OM_DISPOSE:return(handleOM_DISPOSE(cl, obj, (APTR)msg)); #define DECDISP DECDISPOSE // obsolete #define DECSET case OM_SET:return(handleOM_SET(cl, obj, (APTR)msg)); #define DECGET case OM_GET:return(handleOM_GET(cl, obj, (APTR)msg)); #define DECADDMEMBER case OM_ADDMEMBER:return(handleOM_ADDMEMBER(cl, obj, (APTR)msg)); #define DECREMMEMBER case OM_REMMEMBER:return(handleOM_REMMEMBER(cl, obj, (APTR)msg)); #define DECMMETHOD(methodid) case MUIM_##methodid:return(handleMUIM_##methodid(cl,obj,(APTR)msg)); #define DECMETHOD(methodid) case MM_##methodid:return(handleMM_##methodid(cl,obj,(APTR)msg)); #define DECSMETHOD(methodid) case MM_##methodid:return(handleMM_##methodid(cl,obj,(APTR)msg)); #define DECTMETHOD(methodid) case MM_##methodid:return(handleMM_##methodid(cl,obj,(APTR)msg));
@michal_zukowski, post #2
@michal_zukowski, post #4