Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix 505 #710

Merged
merged 2 commits into from
Oct 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/CalcManager/Ratpack/CalcErr.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,45 +41,45 @@ typedef int32_t ResultCode;
// CALC_E_DIVIDEBYZERO
//
// The current operation would require a divide by zero to complete
#define CALC_E_DIVIDEBYZERO ((uint32_t)0x80000000)
static constexpr uint32_t CALC_E_DIVIDEBYZERO = (uint32_t)0x80000000;
Grommers00 marked this conversation as resolved.
Show resolved Hide resolved

// CALC_E_DOMAIN
//
// The given input is not within the domain of this function
#define CALC_E_DOMAIN ((uint32_t)0x80000001)
static constexpr uint32_t CALC_E_DOMAIN = (uint32_t)0x80000001;

// CALC_E_INDEFINITE
//
// The result of this function is undefined
#define CALC_E_INDEFINITE ((uint32_t)0x80000002)
static constexpr uint32_t CALC_E_INDEFINITE = (uint32_t)0x80000002;

// CALC_E_POSINFINITY
//
// The result of this function is Positive Infinity.
#define CALC_E_POSINFINITY ((uint32_t)0x80000003)
static constexpr uint32_t CALC_E_POSINFINITY = (uint32_t)0x80000003;

// CALC_E_NEGINFINITY
//
// The result of this function is Negative Infinity
#define CALC_E_NEGINFINITY ((uint32_t)0x80000004)
static constexpr uint32_t CALC_E_NEGINFINITY = (uint32_t)0x80000004;

// CALC_E_INVALIDRANGE
//
// The given input is within the domain of the function but is beyond
// the range for which calc can successfully compute the answer
#define CALC_E_INVALIDRANGE ((uint32_t)0x80000006)
static constexpr uint32_t CALC_E_INVALIDRANGE = (uint32_t)0x80000006;

// CALC_E_OUTOFMEMORY
//
// There is not enough free memory to complete the requested function
#define CALC_E_OUTOFMEMORY ((uint32_t)0x80000007)
static constexpr uint32_t CALC_E_OUTOFMEMORY = (uint32_t)0x80000007;

// CALC_E_OVERFLOW
//
// The result of this operation is an overflow
#define CALC_E_OVERFLOW ((uint32_t)0x80000008)
static constexpr uint32_t CALC_E_OVERFLOW = (uint32_t)0x80000008;

// CALC_E_NORESULT
//
// The result of this operation is undefined
#define CALC_E_NORESULT ((uint32_t)0x80000009)
static constexpr uint32_t CALC_E_NORESULT = (uint32_t)0x80000009;