9#define OPERATING_SYSTEM WINDOWS
10#include "downward/utils/system_windows.h"
11#elif defined(__APPLE__)
12#define OPERATING_SYSTEM OSX
13#include "downward/utils/system_unix.h"
15#define OPERATING_SYSTEM LINUX
16#include "downward/utils/system_unix.h"
23 ((std::cerr << "Critical error in file " << __FILE__ << ", line " \
24 << __LINE__ << ": " << std::endl \
25 << (msg) << std::endl), \
39 SEARCH_UNSOLVABLE = 11,
40 SEARCH_UNSOLVED_INCOMPLETE = 12,
43 SEARCH_OUT_OF_MEMORY = 22,
44 SEARCH_OUT_OF_TIME = 23,
47 SEARCH_CRITICAL_ERROR = 32,
48 SEARCH_INPUT_ERROR = 33,
49 SEARCH_UNSUPPORTED = 34,
50 SEARCH_UNIMPLEMENTED = 35
54extern void exit_with(ExitCode returncode);
56extern void exit_with_reentrant(ExitCode returncode);
58int get_peak_memory_in_kb();
59const char* get_exit_code_message_reentrant(ExitCode exitcode);
60bool is_exit_code_error_reentrant(ExitCode exitcode);
61void register_event_handlers();
62void report_exit_code_reentrant(ExitCode exitcode);