On Fri, Mar 01, 2013 at 06:43:33PM +0000, Katerina Barone-Adesi wrote:
Dear Katerina,
Rationale: zecke pointed out that the tests should
unconditionally
assert, regardless of debug settings.
--- a/include/osmocom/core/utils.h
+++ b/include/osmocom/core/utils.h
+#define ASSERT(exp) \
it is good thinking to share the code between multiple users (e.g. in
OpenBSC I have a bit of copy and paste for the assertion/testing macros)
that we could clean up.
One thing we have to be careful with is to not pollute the global
namespace, e.g. with something as generic as 'ASSERT' we either need to
find another name or prefix it with OSMO_.
kind regards
holger