Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions MacroDotNet/MacroDotNet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
[Generator]
public sealed class MacroDotNetGenerator : FGeneratorBase
{
private const byte MaxArgCount = 10;
private const sbyte MaxArgCount = 10;
private const string DebugSymbol = "DEBUG";
private static readonly Regex DisplayPrefixRegex = new Regex(@"^[^_]*_", RegexOptions.CultureInvariant | RegexOptions.Compiled);

Expand Down Expand Up @@ -974,7 +974,8 @@ public void Add(string value)
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
readonly public bool IsEmpty() => argsOrFirstItem == null; // `return default` to bypass ctor
readonly public bool IsEmpty() =>
argsOrFirstItem == null; // Don't check 'consumed'. Need to distinguish `default` and `new()`.

readonly public int Count
{
Expand Down
Loading