Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 815 Bytes

File metadata and controls

33 lines (25 loc) · 815 Bytes

TailCall.Fody

This is a Fody add-in that is simply adding tailcall IL prefix.

Install

Available on NuGet

Insert below section into your csproj:

<ItemGroup>
  <PackageReference Include="Fody" Version="6.0.0" PrivateAssets="All" />
  <PackageReference Include="TailCall.Fody" Version="*" PrivateAssets="All" />
</ItemGroup>

Usage

Add <TailCall /> to your FodyWeavers.xml

<Weavers>
  <TailCall />
</Weavers>

then all functions called at tail will be prefixed.

Limitations

  • Does not treat ValueType instance method calls
  • Does not treat generic type instance's method calls without constraints where T : class
  • Does not treat a method that has any byreference parameters

License

MIT