fix:修正作用域范围。

This commit is contained in:
taynpg 2025-04-16 16:52:58 +08:00
parent 7d17080d9b
commit 274db34e38

View File

@ -49,13 +49,13 @@ void UseExceptionHandler(EXCEPTION_POINTERS* exception);
#ifdef WIN_OS #ifdef WIN_OS
#define CRASHELPER_MARK_ENTRY() \ #define CRASHELPER_MARK_ENTRY() \
backward::SignalHandling sh; \ backward::SignalHandling sh; \
sh.register_crash_use_handler([](EXCEPTION_POINTERS* exception) { UseExceptionHandler(exception); }); \ sh.register_crash_use_handler([](EXCEPTION_POINTERS* exception) { backward::UseExceptionHandler(exception); }); \
sh.register_crash_path([]() -> std::string { return GetCurFullLogPath(); }) sh.register_crash_path([]() -> std::string { return backward::GetCurFullLogPath(); })
#elif defined(MAC_OS) #elif defined(MAC_OS)
#elif defined(LINUX_OS) #elif defined(LINUX_OS)
#define CRASHELPER_MARK_ENTRY() \ #define CRASHELPER_MARK_ENTRY() \
backward::SignalHandling sh; \ backward::SignalHandling sh; \
sh.register_crash_path([]() -> std::string { return GetCurFullLogPath(); }) sh.register_crash_path([]() -> std::string { return backward::GetCurFullLogPath(); })
#endif #endif
#endif // CRASHELPER_H #endif // CRASHELPER_H