fix:修正作用域范围。
This commit is contained in:
parent
7d17080d9b
commit
274db34e38
@ -49,13 +49,13 @@ void UseExceptionHandler(EXCEPTION_POINTERS* exception);
|
||||
#ifdef WIN_OS
|
||||
#define CRASHELPER_MARK_ENTRY() \
|
||||
backward::SignalHandling sh; \
|
||||
sh.register_crash_use_handler([](EXCEPTION_POINTERS* exception) { UseExceptionHandler(exception); }); \
|
||||
sh.register_crash_path([]() -> std::string { return GetCurFullLogPath(); })
|
||||
sh.register_crash_use_handler([](EXCEPTION_POINTERS* exception) { backward::UseExceptionHandler(exception); }); \
|
||||
sh.register_crash_path([]() -> std::string { return backward::GetCurFullLogPath(); })
|
||||
#elif defined(MAC_OS)
|
||||
#elif defined(LINUX_OS)
|
||||
#define CRASHELPER_MARK_ENTRY() \
|
||||
backward::SignalHandling sh; \
|
||||
sh.register_crash_path([]() -> std::string { return GetCurFullLogPath(); })
|
||||
sh.register_crash_path([]() -> std::string { return backward::GetCurFullLogPath(); })
|
||||
#endif
|
||||
|
||||
#endif // CRASHELPER_H
|
Loading…
x
Reference in New Issue
Block a user