assert.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright (c) 1999
  3. * Boris Fomitchev
  4. *
  5. * This material is provided "as is", with absolutely no warranty expressed
  6. * or implied. Any use is at your own risk.
  7. *
  8. * Permission to use or copy this software for any purpose is hereby granted
  9. * without fee, provided the above notices are retained on all copies.
  10. * Permission to modify the code and to distribute modified code is granted,
  11. * provided the above notices are retained, and a notice that the code was
  12. * modified is included with the above copyright notice.
  13. *
  14. */
  15. #if !defined (_STLP_OUTERMOST_HEADER_ID)
  16. # define _STLP_OUTERMOST_HEADER_ID 0x202
  17. # include <stl/_cprolog.h>
  18. #elif (_STLP_OUTERMOST_HEADER_ID == 0x202) && ! defined (_STLP_DONT_POP_HEADER_ID)
  19. # define _STLP_DONT_POP_HEADER_ID
  20. #endif
  21. /* evc3 doesn't have assert.h; macro assert() is defined in stl_evc.h */
  22. #ifndef _STLP_WCE_EVC3
  23. # if !defined (assert)
  24. # define _STLP_NATIVE_ASSERT_H_INCLUDED
  25. # if defined (_STLP_HAS_INCLUDE_NEXT)
  26. # include_next <assert.h>
  27. # else
  28. # include _STLP_NATIVE_C_HEADER(assert.h)
  29. # endif
  30. # endif
  31. # if !defined (_STLP_SGX_CONFIG) && !defined (_STLP_NATIVE_ASSERT_H_INCLUDED)
  32. /* See errno.h for additional information about this #error */
  33. # error assert has been defined before inclusion of assert.h header.
  34. # endif
  35. #endif
  36. #if (_STLP_OUTERMOST_HEADER_ID == 0x202)
  37. # if ! defined (_STLP_DONT_POP_HEADER_ID)
  38. # include <stl/_epilog.h>
  39. # undef _STLP_OUTERMOST_HEADER_ID
  40. # endif
  41. # undef _STLP_DONT_POP_HEADER_ID
  42. #endif
  43. /* Local Variables:
  44. * mode:C++
  45. * End:
  46. */