GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::application::ExitCode Class Reference

Exit code suitable for returning from main() or passing to std::exit(). More...

#include <GREM/application/Application.hpp>

Public Member Functions

constexpr ExitCode (int value) noexcept
 Construct an exit code.
constexpr operator int () const noexcept
 Implicitly convert the exit code to its underlying value.

Static Public Attributes

static const ExitCode SUCCESS {EXIT_SUCCESS}
 Standard exit code value for indicating that the program completed successfully.
static const ExitCode FAILURE {EXIT_FAILURE}
 Standard exit code value for indicating that the program encountered an error.

Detailed Description

Exit code suitable for returning from main() or passing to std::exit().

Constructor & Destructor Documentation

◆ ExitCode()

grem::application::ExitCode::ExitCode ( int value)
inlineexplicitconstexprnoexcept

Construct an exit code.

Parameters
valueexit code value.
See also
ExitCode::SUCCESS
ExitCode::FAILURE

Member Function Documentation

◆ operator int()

grem::application::ExitCode::operator int ( ) const
inlineconstexprnoexcept

Implicitly convert the exit code to its underlying value.

Returns
the exit code value.

Member Data Documentation

◆ SUCCESS

ExitCode grem::application::ExitCode::SUCCESS {EXIT_SUCCESS}
inlinestaticconstexpr

Standard exit code value for indicating that the program completed successfully.

◆ FAILURE

ExitCode grem::application::ExitCode::FAILURE {EXIT_FAILURE}
inlinestaticconstexpr

Standard exit code value for indicating that the program encountered an error.


The documentation for this class was generated from the following file: