Blame test-t/n_vargs.t

Packit b40e2e
/* n_vargs.t:   Macro of variable arguments */
Packit b40e2e
/* from C99 Standard 6.10.3 Examples    */
Packit b40e2e
    #define debug( ...) fprintf( stderr, __VA_ARGS__)
Packit b40e2e
    #define showlist( ...)  puts( #__VA_ARGS__)
Packit b40e2e
    #define report( test, ...)  ((test) ? puts( #test)  \
Packit b40e2e
            : printf( __VA_ARGS__))
Packit b40e2e
    {
Packit b40e2e
        /* fprintf( stderr, "Flag");    */
Packit b40e2e
    debug( "Flag");
Packit b40e2e
        /* fprintf( stderr, "X = %d\n", x);     */
Packit b40e2e
    debug( "X = %d\n", x);
Packit b40e2e
        /* puts( "The first, second, and third items.");   */
Packit b40e2e
    showlist( The first, second, and third items.);
Packit b40e2e
        /* ((x>y) ? puts( "x>y") : printf( "x is %d but y is %d", x, y));   */
Packit b40e2e
    report( x>y, "x is %d but y is %d", x, y);
Packit b40e2e
    }
Packit b40e2e