Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
Independent of linux or windows.
-
ALL
Description
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.