#ifndef __CONST_GURD_H__ #define __CONST_GURD_H__ //============================================= #ifdef _MSC_VER #define _FUNC_ __FUNCTION__ #elif __GNUC__ #define _FUNC_ __PRETTY_FUNCTION__ #endif #define _DEBUG_ASSERT_(msg) cout << _FUNC_ << ":" << msg; assert(0); #define _ASSERT_OK_(strct, ptr) if (!strct##_Ok (ptr)) { \ strct##_show (ptr); \ _DEBUG_ASSERT_("Not Ok!") \ } #define USE_SUPER_PUPER_GUARDS //============================================ unsigned const int NUMBER_OF_COMAND = 9; //const double PI_CONST = 3.14159265; const int guard_first = -100800; const int guard_second = -100500; const int guard_third = 100500; const int not_enouth_number = -333; const int no_element = -444; #endif