+++ /dev/null
-#ifdef _SALOME\r
-\r
-# include <utilities.h>\r
-\r
-#else\r
-\r
-#ifndef __MEDMEM_UTILITIES\r
-#define __MEDMEM_UTILITIES\r
-\r
-# include <cstdlib>\r
-# include <iostream>\r
-using namespace std;\r
-\r
-/* --- INFOS is always defined (without _DEBUG_): to be used for warnings, with release version --- */\r
-\r
-# define HEREWEARE {cout<<flush ; cerr << __FILE__ << " [" << __LINE__ << "] : " << flush ;}\r
-# define INFOS(chain) {HEREWEARE ; cerr << chain << endl ;}\r
-# define PYSCRIPT(chain) {cout<<flush ; cerr << "---PYSCRIPT--- " << chain << endl ;}\r
-\r
-\r
-/* --- To print date and time of compilation of current source on stdout --- */\r
-\r
-# if defined ( __GNUC__ )\r
-# define COMPILER "g++" ;\r
-# elif defined ( __sun )\r
-# define COMPILER "CC" ;\r
-# elif defined ( __KCC )\r
-# define COMPILER "KCC" ;\r
-# elif defined ( __PGI )\r
-# define COMPILER "pgCC" ;\r
-# else\r
-# define COMPILER "undefined" ;\r
-# endif\r
-\r
-# ifdef INFOS_COMPILATION\r
-# undef INFOS_COMPILATION\r
-# endif\r
-# define INFOS_COMPILATION {\\r
- cerr << flush;\\r
- cout << __FILE__ ;\\r
- cout << " [" << __LINE__ << "] : " ;\\r
- cout << "COMPILED with " << COMPILER ;\\r
- cout << ", " << __DATE__ ; \\r
- cout << " at " << __TIME__ << endl ;\\r
- cout << "\n\n" ;\\r
- cout << flush ;\\r
- }\r
-\r
-# ifdef _DEBUG_\r
-\r
-/* --- the following MACROS are useful at debug time --- */\r
-\r
-# define HERE {cout<<flush ; cerr << "- Trace " << __FILE__ << " [" << __LINE__ << "] : " << flush ;}\r
-# define SCRUTE(var) {HERE ; cerr << #var << "=" << var << endl ;}\r
-# define MESSAGE(chain) {HERE ; cerr << chain << endl ;}\r
-# define INTERRUPTION(code) {HERE ; cerr << "INTERRUPTION return code= " << code << endl ; exit(code) ;}\r
-\r
-# ifndef ASSERT\r
-# define ASSERT(condition) if (!(condition)){ HERE ; cerr << "CONDITION " << #condition << " NOT VERIFIED"<< endl ; INTERRUPTION(1) ;}\r
-# endif /* ASSERT */\r
-\r
-#define REPERE {cout<<flush ; cerr << " --------------" << endl << flush ;}\r
-#define BEGIN_OF(chain) {REPERE ; HERE ; cerr << "Begin of: " << chain << endl ; REPERE ; }\r
-#define END_OF(chain) {REPERE ; HERE ; cerr << "Normal end of: " << chain << endl ; REPERE ; }\r
-\r
-\r
-\r
-# else /* ifdef _DEBUG_*/\r
-\r
-# define HERE\r
-# define SCRUTE(var) {}\r
-# define MESSAGE(chain) {}\r
-# define INTERRUPTION(code) {}\r
-\r
-# ifndef ASSERT\r
-# define ASSERT(condition) {}\r
-# endif /* ASSERT */\r
-\r
-#define REPERE\r
-#define BEGIN_OF(chain) {}\r
-#define END_OF(chain) {}\r
-\r
-#endif\r
-\r
-#endif\r
-#endif\r