OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [language/] [cxx/] [ustl/] [current/] [tests/] [bvt26.cpp] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
// This file is part of the uSTL library, an STL implementation.
2
//
3
// Copyright (c) 2005-2009 by Mike Sharov <msharov@users.sourceforge.net>
4
// This file is free software, distributed under the MIT License.
5
 
6
#include "stdtest.h"
7
 
8
void TestMacros (void)
9
{
10
    #define VARNAME(n) LARG_NUMBER(v,n)
11
    #define VARDECL(n) VARNAME(n) = n
12
    int COMMA_LIST (9, VARDECL);
13
    cout << LIST(9, VARNAME, <<) << endl;
14
    #define TO_STRING(n) #n
15
    #define PRINT_N(n) REPEAT(n, TO_STRING) "\n"
16
    cout << LIST(9, PRINT_N, <<);
17
}
18
 
19
StdBvtMain (TestMacros)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.