[SERVER-42894] Create CodeContext type and related macros Created: 19/Aug/19  Updated: 29/Oct/23  Resolved: 21/Oct/19

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

Type: New Feature Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Benjamin Caimano (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-42897 Validate base-level latches Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2019-09-09, Service Arch 2019-09-23, Service Arch 2019-10-07, Service Arch 2019-10-21
Participants:

 Description   

It's useful to have a quick and clean way to capture at least _FILE_ and _LINE_ macros.



 Comments   
Comment by Githook User [ 03/Mar/20 ]

Author:

{'username': 'bcaimano', 'name': 'Ben Caimano', 'email': 'ben.caimano@mongodb.com'}

Message: SERVER-42894 Create SourceLocation type and related macros

(cherry picked from commit a01e4d53caeb92cf07faa2507cefcfa8acbf017c)
Branch: v4.2
https://github.com/mongodb/mongo/commit/781853e5021171e713fe226c31df88f3b7542530

Comment by Githook User [ 17/Oct/19 ]

Author:

{'name': 'Ben Caimano', 'username': 'bcaimano', 'email': 'ben.caimano@mongodb.com'}

Message: SERVER-42894 Create SourceLocation type and related macros
Branch: master
https://github.com/mongodb/mongo/commit/a01e4d53caeb92cf07faa2507cefcfa8acbf017c

Comment by Billy Donahue [ 06/Sep/19 ]

A quick source_location demo:
https://gcc.godbolt.org/z/BCjqNb

Comment by Billy Donahue [ 05/Sep/19 ]

I agree but let's try to emulate std::source_location for the API.

Generated at Thu Feb 08 05:01:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.