?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. #ifndef UNITTEST_REQUIREMACROS_H
  2. #define UNITTEST_REQUIREMACROS_H
  3.  
  4. #include "RequiredCheckTestReporter.h"
  5.  
  6. #define UNITTEST_REQUIRE for(UnitTest::RequiredCheckTestReporter decoratedReporter(*UnitTest::CurrentTest::Results()); decoratedReporter.Next(); )
  7.  
  8. #ifndef UNITTEST_DISABLE_SHORT_MACROS
  9.    #ifdef REQUIRE
  10.       #error REQUIRE already defined, re-configure with UNITTEST_ENABLE_SHORT_MACROS set to 0 and use UNITTEST_REQUIRE instead
  11.    #else
  12.       #define REQUIRE UNITTEST_REQUIRE
  13.    #endif
  14. #endif
  15.  
  16. #endif
  17.