macros.icc
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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