[SERVER-10242] Make uassertStatusOK an inline function instead of a macro. Created: 17/Jul/13  Updated: 11/Jul/16  Resolved: 17/Jul/13

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 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);



 Comments   
Comment by auto [ 17/Jul/13 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}

Message: SERVER-10242 Make uassertStatusOK() an inline function instead of a macro.
Branch: master
https://github.com/mongodb/mongo/commit/7ef3fcb0b938c96fddfec5e87f1b63d55d508368

Generated at Thu Feb 08 03:22:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.