[beast] BIRNET: provide min,max,return_[val_]if_fail for convenience



commit 87a3c6a9ed59a9a1f30f26d6235a3630a1e4ac4d
Author: Tim Janik <timj gtk org>
Date:   Sun May 8 18:26:06 2011 +0200

    BIRNET: provide min,max,return_[val_]if_fail for convenience

 birnet/birnetutils.hh |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/birnet/birnetutils.hh b/birnet/birnetutils.hh
index 32b62e7..9349f90 100644
--- a/birnet/birnetutils.hh
+++ b/birnet/birnetutils.hh
@@ -41,7 +41,9 @@ typedef BirnetUnichar unichar;
 /* --- convenient stdc++ types --- */
 typedef std::string String;
 using std::vector;
-using std::map;       
+using std::map;
+using std::min;
+using std::max;
 class VirtualTypeid {
 protected:
   virtual      ~VirtualTypeid      ();
@@ -75,6 +77,8 @@ void birnet_runtime_problemv (char        ewran_tag,
 #define BIRNET_PRIVATE_CLASS_COPY(Class)        private: Class (const Class&); Class& operator= (const Class&);
 #ifdef  _BIRNET_SOURCE_EXTENSIONS
 #define PRIVATE_CLASS_COPY                      BIRNET_PRIVATE_CLASS_COPY
+#define return_if_fail                          g_return_if_fail
+#define return_val_if_fail                      g_return_val_if_fail
 #endif  /* _BIRNET_SOURCE_EXTENSIONS */
 
 /* --- initialization --- */



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