my_assert.h 271 B

1234567891011121314
  1. #ifndef SCPI_ASSERT_H
  2. #define SCPI_ASSERT_H
  3. #include <assert.h>
  4. #include "static_assert.h"
  5. #include "my_assert_exclude.h"
  6. #if !defined(__NO_ASSERT__) && !defined(NDEBUG)
  7. #define my_assert(x) assert(x)
  8. #else
  9. #define my_assert(x)
  10. #endif
  11. #endif