ucx/test.h

changeset 88
18823857ce79
parent 83
3b552d7a9610
child 103
08018864fb91
     1.1 --- a/ucx/test.h	Mon Feb 25 16:26:50 2013 +0100
     1.2 +++ b/ucx/test.h	Wed Feb 27 09:41:17 2013 +0100
     1.3 @@ -82,9 +82,10 @@
     1.4          longjmp(_env_, 1);\
     1.5      }
     1.6  
     1.7 -#define UCX_TEST_SUBROUTINE(name,data) void name(UcxTestSuite* _suite_,\
     1.8 -        FILE *_output_, jmp_buf _env_, void* data)
     1.9 -#define UCX_TEST_CALL_SUBROUTINE(name,data) name(_suite_,_output_,_env_,data);
    1.10 +#define UCX_TEST_SUBROUTINE(name,...) void name(UcxTestSuite* _suite_,\
    1.11 +        FILE *_output_, jmp_buf _env_, __VA_ARGS__)
    1.12 +#define UCX_TEST_CALL_SUBROUTINE(name,...) \
    1.13 +        name(_suite_,_output_,_env_,__VA_ARGS__);
    1.14  
    1.15  #define UCX_TEST_END fwrite("success.\n", 1, 9, _output_); _suite_->success++;}
    1.16  

mercurial