mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Added macros for namespace identification
This commit is contained in:
parent
9a1705ed4c
commit
b0f5a99e15
@ -37,17 +37,25 @@ SOFTWARE.
|
||||
#if ETL_NOT_USING_STL && !defined(ETL_IN_UNIT_TEST)
|
||||
// If we're not using the STL and we are not unit testing, then use the ETL's definitions under the etl namespace
|
||||
#define ETL_OR_STD etl
|
||||
#define ETL_USING_STD_NAMESPACE 0
|
||||
#define ETL_USING_ETL_NAMESPACE 1
|
||||
#else
|
||||
// We will use the STL's definitions under the std namespace
|
||||
#define ETL_OR_STD std
|
||||
#define ETL_USING_STD_NAMESPACE 1
|
||||
#define ETL_USING_ETL_NAMESPACE 0
|
||||
#endif
|
||||
|
||||
#if (ETL_NOT_USING_STL && !defined(ETL_IN_UNIT_TEST)) || ETL_CPP11_NOT_SUPPORTED
|
||||
// If we're not using the STL and we are not unit testing or C++11 is not supported, then use the ETL's definitions under the etl namespace
|
||||
#define ETL_OR_STD11 etl
|
||||
#define ETL_OR_STD11 etl
|
||||
#define ETL_USING_STD11_NAMESPACE 0
|
||||
#define ETL_USING_ETL11_NAMESPACE 1
|
||||
#else
|
||||
// We will use the STL's definitions under the std namespace
|
||||
#define ETL_OR_STD11 std
|
||||
#define ETL_USING_STD11_NAMESPACE 1
|
||||
#define ETL_USING_ETL11_NAMESPACE 0
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user