Starting out on my quest of finding all the ways defines can be defined. First one: _WIN64 - defined by the compiler.
-
-
Replying to @stewartlynch8
[Tangentially: for a very long time, I didn't know you could use a
#define macro as a#include. I still don't think I've ever seen it done in a codebase (that wasn't mine). That was a real twist!]3 replies 0 retweets 8 likes -
Replying to @cmuratori
I think there are some things I won't support on principle :-)
1 reply 0 retweets 3 likes -
Replying to @stewartlynch8
Fair warning: It's actually very useful for library code.
1 reply 0 retweets 6 likes -
Replying to @cmuratori @stewartlynch8
Yep, I use this for including platform-specific implementations, e.g.
#include LPP_PLATFORM_INCLUDE(Shared/Threading, Thread.h). It will include the correct header from the platform-specific directory, where directory names are set up once during platform detection.1 reply 0 retweets 7 likes -
Replying to @molecularmusing @stewartlynch8
Wait - then why would you not support it on principle??
2 replies 0 retweets 3 likes -
Replying to @cmuratori @molecularmusing
Was only joking. Must admit that it wasn't something I was aware of and hadn't thought of any good uses. Thanks for letting me know. Turned out adding support was very easy, done!
2 replies 0 retweets 5 likes
Awesome!
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.