Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/Sentry.Unity.Native/SentryNativeBridge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ public static bool Init(SentryUnityOptions options)
{
Logger = options.DiagnosticLogger;

// Only x86-64 System V platforms need the `VaListLinux64` copy in `nativeLogImpl`. There
// `va_list` is `__va_list_tag[1]` - an array that decays to a pointer - so `vsnprintf`
// consumes the caller's list and it cannot be handed over twice. On AArch64 (Android, iOS,
// Switch, Switch 2, Apple silicon) `va_list` is a struct that is copied by value at every
// call, so the pointer can be reused as-is.
UseLibC = Application.platform
is RuntimePlatform.LinuxPlayer or RuntimePlatform.LinuxServer
or RuntimePlatform.PS5
or RuntimePlatform.Switch
|| Application.platform.IsSwitch2();
or RuntimePlatform.PS5;
if ((Application.platform
is RuntimePlatform.OSXPlayer or RuntimePlatform.OSXServer)
&& RuntimeInformation.ProcessArchitecture == Architecture.X64)
Expand Down
Loading