A normal idea to replace assert() is undefine assert first, then define assert to new function. Include assert.h (cassert) before re-define assert.
But in actual, assert.h does not following #ifndef/#define/#endif mode , so the normal idea does not work.
More information refer to /user/include/assert.h
A normal idea to replace assert() is undefine assert first, then define assert to new function. Include assert.h (cassert) before re-define assert. But in actual, assert.h does not following #ifndef/#define/#endif mode , so the normal idea does not work. More information refer to /user/include/assert.h