From 3724fc204ce764d22eab4f6c2f2cba8b7805825d Mon Sep 17 00:00:00 2001 From: neuecc Date: Tue, 14 Jul 2020 06:40:32 +0900 Subject: [PATCH] memo of IL2CPP VM bug. --- .../UniTask/Runtime/CompilerServices/StateMachineRunner.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/UniTask/Assets/Plugins/UniTask/Runtime/CompilerServices/StateMachineRunner.cs b/src/UniTask/Assets/Plugins/UniTask/Runtime/CompilerServices/StateMachineRunner.cs index 5e2af67..6507f41 100644 --- a/src/UniTask/Assets/Plugins/UniTask/Runtime/CompilerServices/StateMachineRunner.cs +++ b/src/UniTask/Assets/Plugins/UniTask/Runtime/CompilerServices/StateMachineRunner.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member +#pragma warning disable CS1591 using Cysharp.Threading.Tasks.Internal; using System; @@ -8,6 +8,10 @@ using System.Runtime.CompilerServices; namespace Cysharp.Threading.Tasks.CompilerServices { + // #ENABLE_IL2CPP in this file is to avoid bug of IL2CPP VM. + // Issue is tracked on https://issuetracker.unity3d.com/issues/il2cpp-incorrect-results-when-calling-a-method-from-outside-class-in-a-struct + // but currently it is labeled `Won't Fix`. + internal interface IStateMachineRunner { Action MoveNext { get; }