[OT] #define

Andrew Edwards via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon May 22 06:11:15 PDT 2017


Sorry if this is a stupid question but it eludes me. In the 
following, what is THING? What is SOME_THING?

     #ifndef THING
     #define THING
     #endif

     #ifndef SOME_THING
     #define SOME_THING THING *
     #endif

Is this equivalent to:

     alias thing = void;
     alias someThing = thing*;

Thanks,
Andrew


More information about the Digitalmars-d-learn mailing list