New file common/sim-config.c sets/checks simulator configuration options.
[binutils-gdb.git] / sim / common / sim-xcat.h
1 /* This file is part of the program GDB.
2
3 Copyright (C) 1997, Free Software Foundation, Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 */
20
21
22 /* from Michael Meissner, macro's to handle concating symbols better */
23
24 #ifndef _SIM_XCAT_H_
25 #define _SIM_XCAT_H_
26
27 #ifdef __STDC__
28 #define CONCAT2(a,b) a##b
29 #define CONCAT3(a,b,c) a##b##c
30 #define CONCAT4(a,b,c,d) a##b##c##d
31 #else
32 #define CONCAT2(a,b) a/**/b
33 #define CONCAT3(a,b,c) a/**/b/**/c
34 #define CONCAT4(a,b,c,d) a/**/b/**/c/**/d
35 #endif
36
37 #define XCONCAT2(a,b) CONCAT2(a,b)
38 #define XCONCAT3(a,b,c) CONCAT3(a,b,c)
39 #define XCONCAT4(a,b,c,d) CONCAT4(a,b,c,d)
40
41 #endif _SIM_XCAT_H_