Assert.hh

00001 //********************************************************************
00002 //*** tools/Assert.hh
00003 //*** Copyright (c) 2002 by Markus Winand <mws@fatalmind.com>
00004 //*** $Id: Assert.hh,v 1.1 2002-12-14 23:39:47 mws Exp $
00005 //********************************************************************
00006 
00007 #ifndef ASSERT_HH
00008 #define ASSERT_HH
00009 
00010 #include "../Exceptions/Exception.hh"
00011 
00012 namespace fatalmind {
00013 template<class E, class A>
00014 inline void Assert(A assertion) {
00015     if (!assertion) throw E();
00016 }
00017 
00018 } //namespace fatalmind
00019 #endif

Generated on Mon Nov 9 16:21:24 2009 for ResourcePool by  doxygen 1.5.3