Use a common function to abort for debugging purposes
This commit is contained in:
parent
53b2217a34
commit
83e3ea5aa7
5 changed files with 18 additions and 4 deletions
|
|
@ -166,6 +166,18 @@ namespace lifetime {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Breaks into the debugger or terminates Sunshine if no debugger is attached.
|
||||
*/
|
||||
void
|
||||
debug_trap() {
|
||||
#ifdef _WIN32
|
||||
DebugBreak();
|
||||
#else
|
||||
std::raise(SIGTRAP);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Gets the argv array passed to main().
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue