getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] (no subject)


From: Roman Putanowicz
Subject: [Getfem-commits] (no subject)
Date: Wed, 12 Jul 2017 17:41:48 -0400 (EDT)

branch: devel-rppplx-external-except
commit 9625708bd97b25ecb1f19394c246f8528372117f
Author: rpplx <address@hidden>
Date:   Wed Jul 12 23:35:16 2017 +0200

    Cosmetic changes to comments and white spaces.
---
 src/gmm/gmm_except.h | 66 ++++++++++++++++++++++++++--------------------------
 1 file changed, 33 insertions(+), 33 deletions(-)

diff --git a/src/gmm/gmm_except.h b/src/gmm/gmm_except.h
index 57047b7..f19e87f 100644
--- a/src/gmm/gmm_except.h
+++ b/src/gmm/gmm_except.h
@@ -49,10 +49,10 @@
 namespace gmm {
 
 /* *********************************************************************** */
-/*  GetFEM++ generic errors.                                               */
+/*        GetFEM++ generic errors.                                         */
 /* *********************************************************************** */
 
-  //! std logic_error with error level information
+  // std logic_error with error level information
   class gmm_error: public std::logic_error {
   public:
     gmm_error(const std::string& what_arg, int errorLevel = 1):
@@ -89,21 +89,21 @@ namespace gmm {
           << ": \n" << errormsg << std::ends;
     throw gmm::gmm_error(msg__.str());
   }
-# define GMM_THROW_(type, errormsg) {                                   \
-    std::stringstream msg__;                                            \
-    msg__ << "Error in " << __FILE__ << ", line "                       \
-          << __LINE__ << " " << GMM_PRETTY_FUNCTION << ": \n"           \
-          << errormsg << std::ends;                                     \
-    throw (type)(msg__.str());                                          \
+# define GMM_THROW_(type, errormsg) {                         \
+    std::stringstream msg__;                                  \
+    msg__ << "Error in " << __FILE__ << ", line "             \
+          << __LINE__ << " " << GMM_PRETTY_FUNCTION << ": \n" \
+          << errormsg << std::ends;                           \
+    throw (type)(msg__.str());                                \
   }
 
-# define GMM_THROW_AT_LEVEL(errormsg, level)                            \
-  {                                                                     \
-  std::stringstream msg;                                                \
-  msg << "Error in " << __FILE__ << ", line "                           \
-  << __LINE__ << " " << GMM_PRETTY_FUNCTION << ": \n"                   \
-  << errormsg << std::ends;                                             \
-  throw gmm::gmm_error(msg.str(), level);                               \
+# define GMM_THROW_AT_LEVEL(errormsg, level)                  \
+  {                                                           \
+  std::stringstream msg;                                      \
+  msg << "Error in " << __FILE__ << ", line "                 \
+  << __LINE__ << " " << GMM_PRETTY_FUNCTION << ": \n"         \
+  << errormsg << std::ends;                                   \
+  throw gmm::gmm_error(msg.str(), level);                     \
   }
 
 #else
@@ -123,28 +123,28 @@ namespace gmm {
     abort_no_return();
   }
 
-# define GMM_THROW_(type, errormsg) {                                       \
-    std::stringstream msg__;                                                \
-    msg__ << "Error in " << __FILE__ << ", line "                           \
-          << __LINE__ << " " << GMM_PRETTY_FUNCTION << ": \n"               \
-          << errormsg;                                                      \
-    std::cerr << msg__.str() << std::endl;                                  \
-    abort_no_return();                                                      \
+# define GMM_THROW_(type, errormsg) {                         \
+    std::stringstream msg__;                                  \
+    msg__ << "Error in " << __FILE__ << ", line "             \
+          << __LINE__ << " " << GMM_PRETTY_FUNCTION << ": \n" \
+          << errormsg;                                        \
+    std::cerr << msg__.str() << std::endl;                    \
+    abort_no_return();                                        \
   }
 
-# define GMM_THROW_AT_LEVEL(errormsg, level)                                \
-  {                                                                         \
-  std::stringstream msg__;                                                  \
-  msg__ << "Error in " << __FILE__ << ", line "                             \
-  << __LINE__ << " " << GMM_PRETTY_FUNCTION << ": \n"                       \
-  << errormsg <<  " at level " << level;                                    \
-  std::cerr << msg__.str()  << std::endl;                                   \
-  abort_no_return();                                                        \
+# define GMM_THROW_AT_LEVEL(errormsg, level)                  \
+  {                                                           \
+  std::stringstream msg__;                                    \
+  msg__ << "Error in " << __FILE__ << ", line "               \
+  << __LINE__ << " " << GMM_PRETTY_FUNCTION << ": \n"         \
+  << errormsg <<  " at level " << level;                      \
+  std::cerr << msg__.str()  << std::endl;                     \
+  abort_no_return();                                          \
   }
 #endif
 
 
-  inline void GMM_THROW() {}
+inline void GMM_THROW() {}
 #define GMM_THROW(a, b) { GMM_THROW_(a,b); gmm::GMM_THROW(); }
 
 # define GMM_THROW_DEFAULT(errormsg) GMM_THROW_AT_LEVEL(errormsg, 1)
@@ -175,7 +175,7 @@ namespace gmm {
 #endif
 
 /* *********************************************************************** */
-/*   GetFEM++ warnings.                                                    */
+/*        GetFEM++ warnings.                                               */
 /* *********************************************************************** */
 
   // This allows not to compile some Warnings
@@ -228,7 +228,7 @@ namespace gmm {
 #endif
 
 /* *********************************************************************** */
-/*     GetFEM++ traces.                                                    */
+/*        GetFEM++ traces.                                                 */
 /* *********************************************************************** */
 
   // This allow not too compile some Warnings



reply via email to

[Prev in Thread] Current Thread [Next in Thread]