feat: Moves antimacro to a configuration (#1323)

### Summary

- [X] Moves antimacro to `Distribution/Configuration/antimacro.json`.
- [X] Disables antimacro by default.
This commit is contained in:
Kamron Batman 2023-01-23 21:51:05 -08:00 • committed by GitHub
parent 4f67b1174f
commit 4707666890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 169 additions and 39 deletions

View file

@ -1703,4 +1703,20 @@ public static class Utility
return center;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static int GetUnderlyingNumericBitLength(this TypeCode typeCode) =>
typeCode switch
{
TypeCode.Byte => 8,
TypeCode.SByte => 8,
TypeCode.Int16 => 16,
TypeCode.UInt16 => 16,
TypeCode.Char => 16,
TypeCode.Int32 => 32,
TypeCode.UInt32 => 32,
TypeCode.Int64 => 64,
TypeCode.UInt64 => 64,
_ => 64
};
}