00001 //--------------------------------------------------------------------------- 00002 #ifndef jAPIdefinitionsH 00003 #define jAPIdefinitionsH 00004 //--------------------------------------------------------------------------- 00005 00006 #define TRY try { 00007 #define CATCH } catch(...) 00008 #define jDELETE(a) if (a) { delete (a); a = NULL; } 00009 00010 #define jMIN(a, b) (((a) < (b)) ? (a) : (b)) 00011 #define jMAX(a, b) (((a) > (b)) ? (a) : (b)) 00012 #define jXOR(a, b) (((~(a))|(~(b)))&((a)|(b))); 00013 00014 #define jPI_SYMBOL 3.141592654 00015 00016 00017 #endif