Code block as template argument

Ali Çehreli acehreli at yahoo.com
Tue Feb 11 15:08:11 UTC 2020


On 2/11/20 6:58 AM, Andrea Fontana wrote:

>> > Analog C-code with macros:
>> >      #define TPL(M,D,CODE) if ( state & M && diraction = D )
>>
>>                                                ^^^^^^^^^^^^^

> The C code apparently does an assignment inside the macro.
> 

I still think it's a typo. :)

Ali




More information about the Digitalmars-d mailing list