refactor
This commit is contained in:
parent
20e6fd8ffd
commit
15472c0357
@ -47,16 +47,16 @@ using namespace monitarr;
|
|||||||
auto main(int argc, char **argv) -> int {
|
auto main(int argc, char **argv) -> int {
|
||||||
MONITARR_USES_FUNCTION_NAME();
|
MONITARR_USES_FUNCTION_NAME();
|
||||||
|
|
||||||
|
#if defined(PROJECT_ENABLE_BACKWARD_CPP)
|
||||||
|
static backward::SignalHandling sh;
|
||||||
|
#endif // defined(PROJECT_ENABLE_BACKWARD_CPP)
|
||||||
|
|
||||||
if (not utils::file::change_to_process_directory()) {
|
if (not utils::file::change_to_process_directory()) {
|
||||||
utils::error::handle_error(function_name,
|
utils::error::handle_error(function_name,
|
||||||
"failed to change to process directory");
|
"failed to change to process directory");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(PROJECT_ENABLE_BACKWARD_CPP)
|
|
||||||
static backward::SignalHandling sh;
|
|
||||||
#endif // defined(PROJECT_ENABLE_BACKWARD_CPP)
|
|
||||||
|
|
||||||
if (not monitarr::project_initialize()) {
|
if (not monitarr::project_initialize()) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user