Skip to content

acple/TailCall.Fody

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fody add-in simply adding tailcall IL prefix

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages