help on how to wrap a C macros when binding linux/spi/spidev.h

dangbinghoo dangbinghoo at gmail.com
Thu Mar 29 09:16:11 UTC 2018


On Thursday, 29 March 2018 at 09:13:27 UTC, dangbinghoo wrote:
> On Thursday, 29 March 2018 at 09:02:16 UTC, Nicholas Wilson 
> wrote:
>> On Thursday, 29 March 2018 at 08:47:50 UTC, dangbinghoo wrote:
>>
>>>[...]
>>
>> try
>>
>>> [...]
>
> thanks for your reply, but it will also fail, the compiler just 
> gives me :
>
> ----
> source/spidev.d-mixin-129(129,8): Error: variable n cannot be 
> read at compile time
> ----

sorry, I just don't notice the `()`.
yeah! it compiles, but can you explain it? thanks!


More information about the Digitalmars-d-learn mailing list