summaryrefslogtreecommitdiff
path: root/ecos/packages/language/cxx/ustl/current/tests/bvt26.cpp
blob: d01eb5ec9c51a98bbf8028f9210e643a7f1a1748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// This file is part of the uSTL library, an STL implementation.
//
// Copyright (c) 2005 by Mike Sharov <msharov@users.sourceforge.net>
// This file is free software, distributed under the MIT License.

#include "stdtest.h"

void TestMacros (void)
{
    #define VARNAME(n) LARG_NUMBER(v,n)
    #define VARDECL(n) VARNAME(n) = n
    int COMMA_LIST (9, VARDECL);
    cout << LIST(9, VARNAME, <<) << endl;
    #define TO_STRING(n) #n
    #define PRINT_N(n) REPEAT(n, TO_STRING) "\n"
    cout << LIST(9, PRINT_N, <<);
}

StdBvtMain (TestMacros)