-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Code
-
None
-
Environment:Independent of linux or windows.
-
ALL
Current nightly build redefines assert in assert_util.h:
#ifdef assert
#undef assert
#endif
#define MONGO_assert(Expression) (void)( (!!(_Expression)) || (mongo::asserted(#_Expression, __FILE, __LINE_), 0) )
#define assert MONGO_assert
This may break compilation because the redefinition doesn't always behave like e.g. the gcc linux implementation. asert_util.h is included thorugh dbclient.h etc., so the redefinition affects client applications. I had to change the include order to get back the normal assert behaviour.