49 #pragma GCC diagnostic ignored "-Wold-style-cast" 50 #pragma GCC diagnostic ignored "-Wcast-qual" 53 #define WIFEXITED(w) (((w)&0X7F) == 0) 54 #define WEXITSTATUS(w) (((w)&0XFF00) >> 8) 55 #define WIFSIGNALED(w) (((w)&0xff) != 0 && ((w)&0xff) != 0x7f) 60 int status = WEXITSTATUS(error_value);
61 return status == -1 or (not WIFEXITED(status) or status == EXIT_FAILURE) or (WIFSIGNALED(status));
66 int status = WEXITSTATUS(error_value);
67 return status == EXIT_FAILURE;
bool IsError(const int error_value)
Utility include.
bool is_failure(const int error_value)
Return true if the return value corresponds to a failure (not to an error)