Skip to content

Commit

Permalink
Added visionOS as device family
Browse files Browse the repository at this point in the history
  • Loading branch information
brustolin committed Jan 8, 2024
1 parent 1734d1b commit a57bb26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,8 @@
g_systemData.systemName = "macOS";
#elif SentryCrashCRASH_HOST_WATCH
g_systemData.systemName = "watchOS";
#elif SentryCrashCRASH_HOST_VISION
g_systemData.systemName = "visionOS";
#else
g_systemData.systemName = "unknown";
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@
#define SentryCrashCRASH_HOST_IOS (SentryCrashCRASH_HOST_APPLE && TARGET_OS_IOS)
#define SentryCrashCRASH_HOST_TV (SentryCrashCRASH_HOST_APPLE && TARGET_OS_TV)
#define SentryCrashCRASH_HOST_WATCH (SentryCrashCRASH_HOST_APPLE && TARGET_OS_WATCH)
#define SentryCrashCRASH_HOST_VISION (SentryCrashCRASH_HOST_APPLE && TARGET_OS_VISION)
#define SentryCrashCRASH_HOST_MAC \
(SentryCrashCRASH_HOST_APPLE && TARGET_OS_MAC \
&& !(TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH))
&& !(TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH || TARGET_OS_VISION))

#if SentryCrashCRASH_HOST_APPLE
# define SentryCrashCRASH_CAN_GET_MAC_ADDRESS 1
Expand Down

0 comments on commit a57bb26

Please sign in to comment.