zworld-em/Plugins/sentry-unreal/Source/Sentry/Private/Apple/Convenience/SentryMacro.h

17 lines
355 B
C
Raw Permalink Normal View History

2025-05-11 22:07:21 +08:00
// Copyright (c) 2022 Sentry. All Rights Reserved.
#pragma once
#include "HAL/Platform.h"
#include "SentryModule.h"
#include <objc/objc.h>
#if PLATFORM_MAC
#define SENTRY_APPLE_CLASS(Name) \
(__bridge Class)dlsym(FSentryModule::Get().GetSentryLibHandle(), "OBJC_CLASS_$_" #Name)
#elif PLATFORM_IOS
#define SENTRY_APPLE_CLASS(Name) \
Name
#endif