Skip to content

Commit

Permalink
Merge branch 'master' into development/non-functional-streams
Browse files Browse the repository at this point in the history
  • Loading branch information
pwielders authored Oct 2, 2023
2 parents f86418e + a346662 commit 886ba0e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
17 changes: 13 additions & 4 deletions Source/core/WarningReportingControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@

#pragma once

#include <inttypes.h>

#include "CallsignTLS.h"
#include "IWarningReportingControl.h"
#include "Module.h"
#include "Optional.h"
#include "SystemInfo.h"
#include "TextFragment.h"
#include "Time.h"
#include "Trace.h"
#include "TypeTraits.h"
#include "CallsignTLS.h"
#include "IWarningReportingControl.h"

#include <inttypes.h>
#include <unordered_set>
#include <vector>

Expand Down Expand Up @@ -571,12 +571,21 @@ namespace WarningReporting {
static WarningReportingControl<CATEGORY> _sWarningControl;
};

#ifdef __WINDOWS__
template <typename CATEGORY>
typename WarningReportingType<CATEGORY>::template WarningReportingControl<CATEGORY> WarningReportingType<CATEGORY>::_sWarningControl;
template <typename CONTROLCATEGORY>
std::atomic<uint32_t> WarningReportingBoundsCategory<CONTROLCATEGORY>::_reportingBound(CONTROLCATEGORY::DefaultReportBound);
template <typename CONTROLCATEGORY>
std::atomic<uint32_t> WarningReportingBoundsCategory<CONTROLCATEGORY>::_warningBound(CONTROLCATEGORY::DefaultWarningBound);
#else
template <typename CATEGORY>
EXTERNAL typename WarningReportingType<CATEGORY>::template WarningReportingControl<CATEGORY> WarningReportingType<CATEGORY>::_sWarningControl;
template <typename CONTROLCATEGORY>
EXTERNAL std::atomic<uint32_t> WarningReportingBoundsCategory<CONTROLCATEGORY>::_reportingBound(CONTROLCATEGORY::DefaultReportBound);
template <typename CONTROLCATEGORY>
EXTERNAL std::atomic<uint32_t> WarningReportingBoundsCategory<CONTROLCATEGORY>::_warningBound(CONTROLCATEGORY::DefaultWarningBound);
#endif
}
}

Expand Down
9 changes: 5 additions & 4 deletions Source/core/core.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
<ClCompile Include="Library.cpp" />
<ClCompile Include="MessageException.cpp" />
<ClCompile Include="MessageStore.cpp" />
<ClCompile Include="Module.cpp" />
<ClCompile Include="NetworkInfo.cpp" />
<ClCompile Include="NodeId.cpp" />
<ClCompile Include="Number.cpp" />
Expand Down Expand Up @@ -215,7 +216,7 @@
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>CORE_EXPORTS;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions);</PreprocessorDefinitions>
<PreprocessorDefinitions>__CORE_WARNING_REPORTING__;CORE_EXPORTS;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions);</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>
</AdditionalIncludeDirectories>
Expand All @@ -234,7 +235,7 @@
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>CORE_EXPORTS;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>__CORE_WARNING_REPORTING__;CORE_EXPORTS;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>$(WindowsPath)</AdditionalIncludeDirectories>
<UseStandardPreprocessor>true</UseStandardPreprocessor>
Expand All @@ -254,7 +255,7 @@
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>CORE_EXPORTS;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;IN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>__CORE_WARNING_REPORTING__;CORE_EXPORTS;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;IN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>
</AdditionalIncludeDirectories>
Expand All @@ -277,7 +278,7 @@
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>CORE_EXPORTS;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>__CORE_WARNING_REPORTING__;CORE_EXPORTS;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>
</AdditionalIncludeDirectories>
Expand Down
3 changes: 3 additions & 0 deletions Source/core/core.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -362,5 +362,8 @@
<ClCompile Include="MessageStore.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Module.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>

0 comments on commit 886ba0e

Please sign in to comment.