MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
ErrorCode.cpp File Reference
#include "ErrorCode.hpp"
#include "Utils.hpp"
#include <array>
#include <cerrno>
#include <limits>
Include dependency graph for ErrorCode.cpp:

Namespaces

 MobileRT
 

Macros

#define NewError(errorCode, description)   {errorCode, "##errorCode##", description}
 

Functions

static ::std::array< ErrorType, 55 > MobileRT::getErrorType ()
 
ErrorType MobileRT::getErrorCode ()
 

Macro Definition Documentation

◆ NewError

#define NewError (   errorCode,
  description 
)    {errorCode, "##errorCode##", description}

Convert error code in integer format to string format. Note: the descriptions in the comments were taken from: https://en.cppreference.com/w/cpp/error/errno_macros