Function exit_code
Synopsis
#include "breeze/process/program.hpp"
int exit_code()
Description
- Returns
- An integer to be passed to
std::exit()
or returned frommain()
. This corresponds to the most severe error reported by client code to theprogram
class through thedeclare_error()
member function.
EXIT_SUCCESS
or EXIT_FAILURE
.
Important: this function also attempts to flush std::cout
, and calls declare_error( fatal )
if the flush fails (for this reason, it is not const
).
Source
Line 78 in breeze/process/program.hpp.