On Monday, 22 May 2017 at 13:11:15 UTC, Andrew Edwards wrote:
#ifndef THING
#define THING
#endif
This kind of thing is most commonly used in include guards
https://en.wikipedia.org/wiki/Include_guard#Use_of_.23include_guards
You can usually just strip that out in D, since the module system
already just works if imported twice.
#ifndef SOME_THING
#define SOME_THING THING *
#endif
Is this equivalent to:
alias thing = void;
alias someThing = thing*;
I'd have to see that in context though to see why they are doing
it... it is probably some kind of platform specific type
definitions.