4 ms·
When I worked on Windows Phone during the good ol' days, my team used this for a sort of retail mode assert, for situations that really shouldn't happen. Instan
by physicles 2y ago
When I worked on Windows Phone during the good ol' days, my team used this for a sort of retail mode assert, for situations that really shouldn't happen. Instantly recognizable. The definition went something like this:
// This is a shout out to that 80s hit. You know the one.
#define E_JENNY_JENNY_WHO_CAN_I_TURN_TO 0x88675309
The 1 in bit 31 was required to signify that it's a Win32 error code. The other high bits are essentially a namespace, which we used correctly for all our other error codes.
- bankcust08385 2y agoIt's far better than constants like NEVER_USE_OR_MODIFY_OR_YOU_WILL_BE_FIRED that are supposedly for testing only but turn out to be used in production to control whether a beta feature appears or not, and so lead to a bunch of dead code that couldn't really be cleanly disentangled from good production code without someone familiar with it doing a diff review. Wherever my Motorola MPx200 went, it says "Hello."