Skip to content

Commit

Permalink
+ SkipLocalsInit polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
Hawkynt committed Dec 18, 2024
1 parent 57e4e19 commit 34246eb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#region (c)2010-2042 Hawkynt

// This file is part of Hawkynt's .NET Framework extensions.
//
// Hawkynt's .NET Framework extensions are free software:
// you can redistribute and/or modify it under the terms
// given in the LICENSE file.
//
// Hawkynt's .NET Framework extensions is distributed in the hope that
// it will be useful, but WITHOUT ANY WARRANTY without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the LICENSE file for more details.
//
// You should have received a copy of the License along with Hawkynt's
// .NET Framework extensions. If not, see
// <https://github.com/Hawkynt/C--FrameworkExtensions/blob/master/LICENSE>.

#endregion

#if !SUPPORTS_SKIP_LOCALS_INIT

namespace System.Runtime.CompilerServices;

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Method | AttributeTargets.Module | AttributeTargets.Property | AttributeTargets.Struct, Inherited = false)]
public sealed class SkipLocalsInitAttribute : Attribute;

#endif
2 changes: 1 addition & 1 deletion VersionSpecificSymbols.Common.prop
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ as the last line before </Project> like
<DefineConstants Condition="$(IsNetCore) AND $([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('3.1')))) &gt;= 0">$(DefineConstants); SUPPORTS_CALLER_ARGUMENT_EXPRESSION_ATTRIBUTE; SUPPORTS_OPTIMIZATION; SUPPORTS_FILE_ASYNC; </DefineConstants>

<!-- Core 5.0 -->
<DefineConstants Condition="$(IsNetCore) AND $([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('5.0')))) &gt;= 0">$(DefineConstants); SUPPORTS_VECTOR_64; DEPRECATED_BINARY_FORMATTER; SUPPORTS_EXTERNAL_INIT; DEPRECATED_UTF7; </DefineConstants>
<DefineConstants Condition="$(IsNetCore) AND $([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('5.0')))) &gt;= 0">$(DefineConstants); SUPPORTS_VECTOR_64; DEPRECATED_BINARY_FORMATTER; SUPPORTS_EXTERNAL_INIT; SUPPORTS_SKIP_LOCALS_INIT; DEPRECATED_UTF7; </DefineConstants>

<!-- Core 6.0 -->
<DefineConstants Condition="$(IsNetCore) AND $([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('6.0')))) &gt;= 0">$(DefineConstants); DEPRECATED_RNG_CRYPTO_SERVICE_PROVIDER; SUPPORTS_STACKTRACE_HIDDEN_ATTRIBUTE; SUPPORTS_CALLER_ARGUMENT_EXPRESSION_ATTRIBUTE; SUPPORTS_RANDOM_SHARED; SUPPORTS_RANDOM_NEXTINT64; SUPPORTS_MINMAX_BY; SUPPORTS_FIRSTLASTSINGLE_DEFAULT; SUPPORTS_STRING_COPYTO_SPAN; SUPPORTS_MATH_RECIPROCAL_ESTIMATE; SUPPORTS_ENUM_PARSE_SPAN; </DefineConstants>
Expand Down

0 comments on commit 34246eb

Please sign in to comment.