Automatically generate error_codes.h and error_codes.cpp from a list of codes

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.3.1
    • Affects Version/s: 2.3.0
    • Component/s: Build
    • None
    • Environment:
      scons and Visual Studio builds
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The source files mongo/base/error_codes.h and mongo/base/error_codes.cpp need to be kept in sync as new error codes are added. This would be easier to do correctly if the files were automatically generated by the build system from a single list of error codes.

      Both of the scons and Visual Studio builds should do this, producing identical output files.

              Assignee:
              Andy Schwerin
              Reporter:
              Tad Marshall
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: