const_gurd.h 763 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef __CONST_GURD_H__
  2. #define __CONST_GURD_H__
  3. //=============================================
  4. #ifdef _MSC_VER
  5. #define _FUNC_ __FUNCTION__
  6. #elif __GNUC__
  7. #define _FUNC_ __PRETTY_FUNCTION__
  8. #endif
  9. #define _DEBUG_ASSERT_(msg) cout << _FUNC_ << ":" << msg; assert(0);
  10. #define _ASSERT_OK_(strct, ptr) if (!strct##_Ok (ptr)) { \
  11. strct##_show (ptr); \
  12. _DEBUG_ASSERT_("Not Ok!") \
  13. }
  14. #define USE_SUPER_PUPER_GUARDS
  15. //============================================
  16. unsigned const int NUMBER_OF_COMAND = 9;
  17. //const double PI_CONST = 3.14159265;
  18. const int guard_first = -100800;
  19. const int guard_second = -100500;
  20. const int guard_third = 100500;
  21. const int not_enouth_number = -333;
  22. const int no_element = -444;
  23. #endif