Generated on Thu Jul 6 07:06:48 2006 for Gecode by doxygen 1.4.7

macros.icc

Go to the documentation of this file.
00001 /*
00002  *  Main authors:
00003  *     Christian Schulte <schulte@gecode.org>
00004  *
00005  *  Copyright:
00006  *     Christian Schulte, 2004
00007  *
00008  *  Last modified:
00009  *     $Date: 2005-07-28 22:52:19 +0200 (Thu, 28 Jul 2005) $ by $Author: schulte $
00010  *     $Revision: 2072 $
00011  *
00012  *  This file is part of Gecode, the generic constraint
00013  *  development environment:
00014  *     http://www.gecode.org
00015  *
00016  *  See the file "LICENSE" for information on usage and
00017  *  redistribution of this file, and for a
00018  *     DISCLAIMER OF ALL WARRANTIES.
00019  *
00020  */
00021 
00029 #define GECODE_ME_CHECK(me)                     \
00030   if (::Gecode::me_failed(me))                  \
00031     return ::Gecode::ES_FAILED;
00032 
00039 #define GECODE_ME_FAIL(home,me)                 \
00040   if (::Gecode::me_failed(me)) {                        \
00041     (home)->fail();                             \
00042     return;                                     \
00043   }
00044 
00045 
00046 
00051 #define GECODE_ES_CHECK(es)                     \
00052   if ((es) == ::Gecode::ES_FAILED)              \
00053     return ::Gecode::ES_FAILED;
00054 
00059 #define GECODE_ES_FAIL(home,es)                 \
00060   if ((es) == ::Gecode::ES_FAILED) {            \
00061     (home)->fail();                             \
00062     return;                                     \
00063   }
00064 
00065 // STATISTICS: kernel-other