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:45 -0400 (EDT)

branch: devel-rppplx-external-except
commit 48b1c4676cc3df0fa09447b3e0769febc6154b69
Author: rpplx <address@hidden>
Date:   Wed Jul 12 22:23:39 2017 +0200

    Introduced macro GMM_THROW_DEFAULT that just accepts error message. The 
gmm_error exception is then throw with error level equal 1.
    This macro is introduced because throwing at error level 1 is most common 
in our code, and the macro adds a bit of syntactic sugar.
---
 src/gmm/gmm_except.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gmm/gmm_except.h b/src/gmm/gmm_except.h
index 26cb338..cae703d 100644
--- a/src/gmm/gmm_except.h
+++ b/src/gmm/gmm_except.h
@@ -146,6 +146,7 @@ namespace gmm {
   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)
 #if defined(NDEBUG)
 # define GMM_ASSERT2(test, errormsg) {}
 # define GMM_ASSERT3(test, errormsg) {}



reply via email to

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