Evil preprocessor hack of the day [entries|reading|network|archive]
simont

[ userinfo | dreamwidth userinfo ]
[ archive | journal archive ]

Wed 2007-04-18 17:39
Evil preprocessor hack of the day
LinkReply
[identity profile] tackline.livejournal.comWed 2007-04-18 17:57
I was thinking (and I've not been a C++ programmer for almost a decade(:

#ifdef NDEBUG
#define since(cond) if (0) ; else
#else
#define since(cond) if (!(cond)) { assert(0); } else
#endif

Link Reply to this | Parent
navigation
[ go | Previous Entry | Next Entry ]
[ add | to Memories ]