Home | History | Annotate | Line # | Download | only in libpthread
h_common.h revision 1.1
      1 #ifndef H_COMMON_H
      2 #define H_COMMON_H
      3 
      4 #include <string.h>
      5 
      6 #define PTHREAD_REQUIRE(x) \
      7     do { \
      8         int ret = (x); \
      9         ATF_REQUIRE_MSG(ret == 0, "%s: %s", #x, strerror(ret)); \
     10     } while (0)
     11 
     12 #endif // H_COMMON_H
     13