SDL_test_assert.h 572 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _SDL_test_assert_h
  2. #define _SDL_test_assert_h
  3. #include "begin_code.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #define ASSERT_FAIL 0
  8. #define ASSERT_PASS 1
  9. void SDLTest_Assert(int assertCondition, const char *assertDescription, ...);
  10. int SDLTest_AssertCheck(int assertCondition, const char *assertDescription, ...);
  11. void SDLTest_AssertPass(const char *assertDescription, ...);
  12. void SDLTest_ResetAssertSummary();
  13. void SDLTest_LogAssertSummary();
  14. int SDLTest_AssertSummaryToTestResult();
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #include "close_code.h"
  19. #endif