[PD-dev] How to check data type of arguments in object

Alexandros Drymonitis adrcki at gmail.com
Tue Sep 12 21:15:07 CEST 2023


Or actually, argv->a.type == A_FLOAT. Sorry for clogging the list, just 
wanted to pass the correct information, unless I'm wrong again...

On 9/12/23 19:30, Alexandros Drymonitis wrote:
> I replied a bit too fast, I guess it should be argv.a_type == A_FLOAT 
> and likewise for symbol. I'll give it a try.
>
> On 9/12/23 19:28, Alexandros Drymonitis wrote:
>> Does this mean that I have to check sort of like this:
>>
>> if (argv == A_FLOAT) {
>>     /* do something with the float arg */
>> }
>> else if (argv == A_SYMBOL) {
>>     /* do something with the symbol arg */
>> }
>>
>> On 9/12/23 18:55, IOhannes m zmölnig wrote:
>>> https://github.com/pure-data/externals-howto#class_new-1
>>> https://github.com/pure-data/externals-howto#atoms
>>>
>>> mfg.sfg.jfd
>>> IOhannes
>>>
>>>
>>> _______________________________________________
>>> Pd-dev mailing list
>>> Pd-dev at lists.iem.at
>>> https://lists.puredata.info/listinfo/pd-dev





More information about the Pd-dev mailing list