How to convert C macro to D? Thanks.

FrankLike 1150015857 at qq.com
Sat Feb 24 13:50:16 UTC 2018


Hi,everyone,

I can convert some simple C macros, but a bit more complicated 
will need your help.
For example:

#define _NDIS_CONTROL_CODE(request,method) \
             CTL_CODE(FILE_DEVICE_PHYSICAL_NETCARD, request, 
method, FILE_ANY_ACCESS)

#define IOCTL_NDIS_QUERY_GLOBAL_STATS   _NDIS_CONTROL_CODE(0, 
METHOD_OUT_DIRECT)

use alias or enum,how to do?

Thanks.


More information about the Digitalmars-d-learn mailing list