summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libpthread/h_common.h
blob: f4d03bcdec9e92449ff611fb002df99b6fcb362a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef H_COMMON_H
#define H_COMMON_H

#include <string.h>

#define PTHREAD_REQUIRE(x) \
    do { \
        int ret = (x); \
        ATF_REQUIRE_MSG(ret == 0, "%s: %s", #x, strerror(ret)); \
    } while (0)

#endif // H_COMMON_H
OpenPOWER on IntegriCloud