Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1259

replace "assert" with "verify"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.1
    • 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.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            languitar Johannes Wienke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: