Skip to content

Commit

Permalink
Fixed IL2CPP compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
timcassell committed Dec 12, 2021
1 parent f9b596e commit 06cf8fd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Runtime/ProtoPromise/InternalShared/HelperFunctionsInternal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ public static void ClearPool()
}
}

static partial void _SetCreatedStacktrace(ITraceable traceable, int skipFrames);
static partial void _SetCreatedAndRejectedStacktrace(IRejectValueContainer unhandledException, int rejectSkipFrames, ITraceable traceable);
static partial void _SetCurrentInvoker(ITraceable current);
static partial void _ClearCurrentInvoker();
#if PROMISE_DEBUG
private static readonly System.Threading.Thread _initialThread = System.Threading.Thread.CurrentThread;

public static void ValidateThreadAccess(int skipFrames, bool warn = true)
Expand All @@ -63,6 +58,12 @@ public static void ValidateThreadAccess(int skipFrames, bool warn = true)
}
}

static partial void _SetCreatedStacktrace(ITraceable traceable, int skipFrames);
static partial void _SetCreatedAndRejectedStacktrace(IRejectValueContainer unhandledException, int rejectSkipFrames, ITraceable traceable);
static partial void _SetCurrentInvoker(ITraceable current);
static partial void _ClearCurrentInvoker();
#if PROMISE_DEBUG

static partial void _SetCreatedStacktrace(ITraceable traceable, int skipFrames)
{
SetCreatedStacktrace(traceable, skipFrames + 1);
Expand Down

0 comments on commit 06cf8fd

Please sign in to comment.