logoalt Hacker News

NooneAtAll3 • today at 1:36 AM • 1 reply • view on HN

> Always define your own internal macro and always provide facilities for the user to override it.

that kinda sounds even more insane and cumbersome


Replies

fc417fc802 • today at 2:04 AM

It's literally standard practice. You import assert.h unless the end user has defined mylib_assert in which case you don't import and use that instead. Failing to do this can result in all kinds of dumb problems thanks to the namespace being global.