Skip to content

Conversation

@kzrnm
Copy link
Contributor

@kzrnm kzrnm commented Jan 5, 2024

Another source uses the following idiom. I have adapted it.

#if DEBUG
        // Mutable for unit testing...
        private static
#else
        private const
#endif

#if DEBUG
// Mutable for unit testing...
internal static
#else
internal const
#endif
int StackAllocThreshold = 64;

#if DEBUG
// Mutable for unit testing...
private static
#else
private const
#endif
int SquareThreshold = 32;

@ghost ghost added community-contribution Indicates that the PR has been added by a community member area-System.Numerics labels Jan 5, 2024
@ghost
Copy link

ghost commented Jan 5, 2024

Tagging subscribers to this area: @dotnet/area-system-numerics
See info in area-owners.md if you want to be subscribed.

Issue Details

Another source uses the following idiom. I have adapted it.

#if DEBUG
        // Mutable for unit testing...
        private static
#else
        private const
#endif

#if DEBUG
// Mutable for unit testing...
internal static
#else
internal const
#endif
int StackAllocThreshold = 64;

#if DEBUG
// Mutable for unit testing...
private static
#else
private const
#endif
int SquareThreshold = 32;

Author: kzrnm
Assignees: -
Labels:

area-System.Numerics, community-contribution

Milestone: -

@kzrnm kzrnm force-pushed the fix/BigIntegerDebugConst branch from 113f210 to 94fc74f Compare January 5, 2024 16:58
@kzrnm kzrnm force-pushed the fix/BigIntegerDebugConst branch from 94fc74f to 8fa4a35 Compare January 5, 2024 19:06
@tannergooding tannergooding merged commit 766716b into dotnet:main Jan 10, 2024
@kzrnm kzrnm deleted the fix/BigIntegerDebugConst branch January 11, 2024 14:13
tmds pushed a commit to tmds/runtime that referenced this pull request Jan 23, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Feb 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Numerics community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants