v1.2版本改为通过xbox系列手柄进行遥控,并增加智能模式和手动模式
This commit is contained in:
1 parent
76603d3c31
commit
1a97bc32c3
1839 files changed
+478852
-3
No files matched your search
@@ -0,0 +1,34 @@
|
||||
#ifndef CRASH_HANDLER_H
|
||||
#define CRASH_HANDLER_H
|
||||
|
||||
// allow-include-after-namespace
|
||||
// Determine which crash handler implementation to use
|
||||
#ifdef _WIN32
|
||||
#include "crash_handler_win.h"
|
||||
namespace impl = crash_handler_win;
|
||||
#elif defined(USE_LIBUNWIND)
|
||||
#include "crash_handler_libunwind.h"
|
||||
namespace impl = crash_handler_libunwind;
|
||||
#elif __has_include(<execinfo.h>)
|
||||
#define USE_EXECINFO 1
|
||||
#include "crash_handler_execinfo.h"
|
||||
namespace impl = crash_handler_execinfo;
|
||||
#else
|
||||
#include "crash_handler_noop.h"
|
||||
namespace impl = crash_handler_noop;
|
||||
#endif
|
||||
|
||||
// Unified interface - these functions will dispatch to the appropriate implementation
|
||||
inline void crash_handler(int sig) {
|
||||
impl::crash_handler(sig);
|
||||
}
|
||||
|
||||
inline void print_stacktrace() {
|
||||
impl::print_stacktrace();
|
||||
}
|
||||
|
||||
inline void setup_crash_handler() {
|
||||
impl::setup_crash_handler();
|
||||
}
|
||||
|
||||
#endif // CRASH_HANDLER_H
|
||||
Reference in new issue
Block a user