Skip to content

Commit

Permalink
Minor tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
jwellbelove committed May 12, 2020
1 parent 638d6ac commit d8fcf01
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 15 deletions.
2 changes: 1 addition & 1 deletion examples/ArmTimerCallbacks - C++/etl_profile.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
#define ETL_CALLBACK_TIMER_USE_ATOMIC_LOCK
#define ETL_NO_STL

#include "etl/profiles/auto.h"
//#include "etl/profiles/auto.h"

#endif
24 changes: 12 additions & 12 deletions include/etl/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,29 +54,29 @@ SOFTWARE.
// The ETL will use the STL, unless ETL_NO_STL is defined.
// With this macro we can use '#if ETL_USING_STL' instead of '#if !ETL_NO_STL' in the code.
#if defined(ETL_NO_STL)
#define ETL_USING_STL 0
#define ETL_NOT_USING_STL 1
#define ETL_USING_STL 0
#define ETL_NOT_USING_STL 1
#else
#define ETL_USING_STL 1
#define ETL_NOT_USING_STL 0
#define ETL_USING_STL 1
#define ETL_NOT_USING_STL 0
#endif

// Helper macros for ETL_STLPORT.
#if defined(ETL_STLPORT)
#define ETL_USING_STLPORT 1
#define ETL_NOT_USING_STLPORT 0
#define ETL_USING_STLPORT 1
#define ETL_NOT_USING_STLPORT 0
#else
#define ETL_USING_STLPORT 0
#define ETL_NOT_USING_STLPORT 1
#define ETL_USING_STLPORT 0
#define ETL_NOT_USING_STLPORT 1
#endif

// Helper macro for ETL_NO_64BIT_TYPES.
#if defined(ETL_NO_64BIT_TYPES)
#define ETL_USING_64BIT_TYPES 0
#define ETL_NOT_USING_64BIT_TYPES 1
#define ETL_USING_64BIT_TYPES 0
#define ETL_NOT_USING_64BIT_TYPES 1
#else
#define ETL_USING_64BIT_TYPES 1
#define ETL_NOT_USING_64BIT_TYPES 0
#define ETL_USING_64BIT_TYPES 1
#define ETL_NOT_USING_64BIT_TYPES 0
#endif

// Figure out things about the compiler, if haven't already done so in etl_profile.h
Expand Down
2 changes: 1 addition & 1 deletion include/etl/profiles/determine_compiler_language_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ SOFTWARE.
#endif

// NAN not defined or Rowley CrossWorks
#if !defined(NAN) || defined(__CROSSWORKS_ARM)
#if !defined(NAN) || defined(__CROSSWORKS_ARM) || defined(ETL_COMPILER_ARM5)
#if !defined(ETL_NO_CPP_NAN_SUPPORT)
#define ETL_NO_CPP_NAN_SUPPORT
#endif
Expand Down
3 changes: 3 additions & 0 deletions include/etl/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,9 @@ namespace etl
//*************************************************************************
/// Fix the internal pointers after a low level memory copy.
//*************************************************************************
#ifdef ETL_IVECTOR_REPAIR_ENABLE
virtual
#endif
void repair()
#ifdef ETL_IVECTOR_REPAIR_ENABLE
ETL_OVERRIDE
Expand Down
2 changes: 1 addition & 1 deletion test/etl_profile.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ SOFTWARE.
//#define ETL_OPTIONAL_FORCE_CPP03
//#define ETL_LARGEST_TYPE_FORCE_CPP03

#if ETL_NOT_USING_STL
#if defined(ETL_NO_STL)
#define ETL_TIMER_SEMAPHORE_TYPE uint32_t
#endif

Expand Down
1 change: 1 addition & 0 deletions test/vs2019/etl.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,7 @@
<ClCompile Include="..\test_xor_rotate_checksum.cpp" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\.circleci\config.yml" />
<None Include="..\..\etl.pspimage" />
<None Include="..\..\etl.xar" />
<None Include="..\..\include\etl\generators\generate.bat" />
Expand Down
3 changes: 3 additions & 0 deletions test/vs2019/etl.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,9 @@
<None Include="..\..\include\etl\generators\generate.bat">
<Filter>Resource Files\Generators</Filter>
</None>
<None Include="..\..\.circleci\config.yml">
<Filter>Resource Files\CI\CircleCI</Filter>
</None>
</ItemGroup>
<ItemGroup>
<Text Include="..\..\include\etl\file_error_numbers.txt">
Expand Down

0 comments on commit d8fcf01

Please sign in to comment.