X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Fthrd_yield.c;h=55ce0a2a4d3ef6f050fe380fd838731b92452f6b;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hp=8c7863f643f27e1e7319c41cbae70cd1cdd5d051;hpb=b41576197133c1211d6ec353faf93f505f573b8a;p=pdclib diff --git a/opt/nothread/thrd_yield.c b/opt/nothread/thrd_yield.c index 8c7863f..55ce0a2 100644 --- a/opt/nothread/thrd_yield.c +++ b/opt/nothread/thrd_yield.c @@ -1,6 +1,18 @@ -#include - -void thrd_yield(void) -{ - /* does nothing */ -} \ No newline at end of file +#ifndef REGTEST +#include + +void thrd_yield(void) +{ + /* does nothing */ +} +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif