10#ifndef ROOT_Math_Error 
   11#define ROOT_Math_Error 
   27#ifdef MATHCORE_STANDALONE 
   35#define ROOT_MATH_OS std::cerr 
   42#define MATH_INFO_MSG(loc,str)                   \ 
   43   ROOT_MATH_OS << "Info in ROOT::Math::" << loc << ">: "  << str \
 
   45#define MATH_WARN_MSG(loc,str)                      \ 
   46   ROOT_MATH_OS << "Warning in ROOT::Math::" << loc << ">: " << str \
 
   48#define MATH_ERROR_MSG(loc,str)                   \ 
   49   ROOT_MATH_OS << "Error in ROOT::Math::" << loc << ">: " << str \
 
   54# define MATH_INFO_VAL(loc,x)                                           \ 
   55   ROOT_MATH_OS << "Info in <ROOT::Math::" << loc << ">: " << #x << " = " << (x) << std::endl;
 
   56# define MATH_WARN_VAL(loc,x)                                           \ 
   57   ROOT_MATH_OS << "Warning in ROOT::Math::" << loc << ">: " << #x << " = " << (x) << std::endl;
 
   58# define MATH_ERROR_VAL(loc,x)                                          \ 
   59   ROOT_MATH_OS << "Error in ROOT::Math::" << loc << ">: " << #x << " = " << (x) << std::endl;
 
   63# define MATH_INFO_MSGVAL(loc,str,x)                                    \ 
   64   ROOT_MATH_OS << "Info in <ROOT::Math::" << loc << ">: "  << str << "; " << #x << " = " << (x) << std::endl;
 
   65# define MATH_WARN_MSGVAL(loc,str,x)                                    \ 
   66   ROOT_MATH_OS << "Warning in ROOT::Math::" << loc << ">: " << str << "; " << #x << " = " << (x) << std::endl;
 
   67# define MATH_ERROR_MSGVAL(loc,str,x)                                   \ 
   68   ROOT_MATH_OS << "Error in ROOT::Math::" << loc << ">: " << str << "; " << #x << " = " << (x) << std::endl;
 
   77#define  MATH_INFO_MSG(loc,str)                 \ 
   78   {std::string sl = "ROOT::Math::" + std::string(loc); \
 
   79      ::Info(sl.c_str(),"%s",str);}
 
   80#define  MATH_WARN_MSG(loc,str)                 \ 
   81   {std::string sl = "ROOT::Math::" + std::string(loc); \
 
   82      ::Warning(sl.c_str(),"%s",str);}
 
   83#define  MATH_ERROR_MSG(loc,str)                \ 
   84   {std::string sl = "ROOT::Math::" + std::string(loc); \
 
   85      ::Error(sl.c_str(),"%s",str);}
 
   87# define MATH_INFO_VAL(loc,x)                                           \ 
   88   {std::string sl = "ROOT::Math::" + std::string(loc); \
 
   89    std::string str = std::string(#x) + std::string(" = ") + ::ROOT::Math::Util::ToString(x); \
 
   90   ::Info(sl.c_str(),"%s",str.c_str() );}
 
   91# define MATH_WARN_VAL(loc,x)                                           \ 
   92   {std::string sl = "ROOT::Math::" + std::string(loc); \
 
   93    std::string str = std::string(#x) + std::string(" = ") + ::ROOT::Math::Util::ToString(x); \
 
   94   ::Warning(sl.c_str(),"%s",str.c_str() );}
 
   95# define MATH_ERROR_VAL(loc,x)                                          \ 
   96   {std::string sl = "ROOT::Math::" + std::string(loc); \
 
   97    std::string str = std::string(#x) + std::string(" = ") + ::ROOT::Math::Util::ToString(x); \
 
   98   ::Error(sl.c_str(),"%s",str.c_str() );}
 
  101# define MATH_INFO_MSGVAL(loc,txt,x)                    \ 
  102   {std::string sl = "ROOT::Math::" + std::string(loc); \
 
  103    std::string str = std::string(txt) + std::string("; ") + std::string(#x) + std::string(" = ") + ::ROOT::Math::Util::ToString(x); \
 
  104   ::Info(sl.c_str(),"%s",str.c_str() );}
 
  105# define MATH_WARN_MSGVAL(loc,txt,x)                      \ 
  106   {std::string sl = "ROOT::Math::" + std::string(loc); \
 
  107    std::string str = std::string(txt) + std::string("; ") + std::string(#x) + std::string(" = ") + ::ROOT::Math::Util::ToString(x); \
 
  108   ::Warning(sl.c_str(),"%s",str.c_str() );}
 
  109# define MATH_ERROR_MSGVAL(loc,txt,x)                     \ 
  110   {std::string sl = "ROOT::Math::" + std::string(loc); \
 
  111    std::string str = std::string(txt) + std::string("; ") + std::string(#x) + std::string(" = ") + ::ROOT::Math::Util::ToString(x); \
 
  112   ::Error(sl.c_str(),"%s",str.c_str() );}