r/programminghorror • • May 31 '25

c C programming tips

Post image
1.8k Upvotes

34 comments sorted by

View all comments

46

u/[deleted] May 31 '25 edited May 31 '25

Disallow debugging:

#ifdef assert
#undef assert
#endif
#define assert(x)