Added macros for namespace identification

This commit is contained in:
John Wellbelove 2022-03-18 15:09:26 +00:00
parent 9a1705ed4c
commit b0f5a99e15

View File

@ -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