Skip to content

Commit

Permalink
Initialize reinterop in static partial methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Dec 8, 2023
1 parent bae4730 commit 8eaff58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Reinterop~/MethodsImplementedInCpp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ private static void GenerateMethod(CppGenerationContext context, TypeToGenerate
if (method.IsStatic)
{
modifiers += " static";
implementationCheck = "Reinterop.ReinteropInitializer.Initialize();";
}
else if (!item.ImplementationStaticOnly)
{
Expand Down

0 comments on commit 8eaff58

Please sign in to comment.