Function exit_code


#include "breeze/process/program.hpp"

int exit_code()


An integer to be passed to std::exit() or returned from main(). This corresponds to the most severe error reported by client code to the program class through the declare_error() member function.
If the system supports it, the various gravities will be distinguished in the exit code; if not, all you get is 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).


Line 78 in breeze/process/program.hpp.