Opened on 11/21/2017 at 01:19:26 PM
Closed on 02/07/2018 at 02:45:00 PM
#6064 closed change (fixed)
Put C++ code into a configurable namespace
Reported by: | sergz | Assignee: | sergz |
---|---|---|---|
Priority: | Unknown | Milestone: | |
Module: | Core | Keywords: | |
Cc: | hfiguiere | Blocked By: | |
Blocking: | Platform: | Unknown / Cross platform | |
Ready: | no | Confidential: | no |
Tester: | Unknown | Verified working: | no |
Review URL(s): |
Description
Background
In order to avoid conflicts with already existing C++ code when one tries to use it natively we should put all our C++ code into a namespace. However it still can make sense to not use a namespace when it's compiled to JS in order to avoid additional dealing with name mangling.
What to change
- introduce base.h which should be included as the first our header in every our header.
- introduce ABP_USER_CONFIG which is a path to a header file included by base.h and representing options which may be configured by a user. If it's not defined then use user.h.
- add defines ABP_NS, ABP_NS_BEGIN, ABP_NS_END and ABP_NS_USING into user.h and add corresponding usage of them into all headers and C++ files.
Attachments (0)
Change History (4)
comment:1 Changed on 11/21/2017 at 01:57:47 PM by sergz
- Review URL(s) modified (diff)
- Status changed from new to reviewing
comment:2 Changed on 12/21/2017 at 11:26:28 AM by fhd
- Cc trev removed
comment:3 Changed on 02/07/2018 at 02:44:18 PM by abpbot
comment:4 Changed on 02/07/2018 at 02:45:00 PM by sergz
- Resolution set to fixed
- Status changed from reviewing to closed
Note: See
TracTickets for help on using
tickets.
A commit referencing this issue has landed:
Issue 6064 - Put C++ code into a configurable namespace