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

Make uassertStatusOK an inline function instead of a macro.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Fully Compatible

    Description

      There is no benefit to its being a macro, and some disadvantage. In particular, right now the following has undefined behavior:

      Status status = ...;
      uassertStatusOK(status);

      Attachments

        Activity

          People

            schwerin@mongodb.com Andy Schwerin
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: