[PD-dev] getting the classname in an class

Mathieu Bouchard matju at artengine.ca
Wed Oct 31 05:23:01 CET 2007


On Sun, 28 Oct 2007, Hans-Christoph Steiner wrote:
> On Oct 27, 2007, at 2:25 AM, Mathieu Bouchard wrote:
>> Now that I think of it, you could try:
>>   binbuf_getvec(((t_text *)x)->te_binbuf)[0]->a_w.w_symbol->s_name
>> or something like that.
>
> post("classname: %s", binbuf_getvec(((t_text 
> *)x)->te_binbuf)[0]->a_w.w_symbol->s_name);
>
> gives me:
>
> entry.c:671: error: request for member 'te_binbuf' in something not a 
> structure or union
> entry.c:671: error: invalid type argument of '->'

Well, I don't know how you got the first, but the latter is fixed by 
changing the arrow to a dot.

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada


More information about the Pd-dev mailing list