njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 1 | |
| 2 | /*--------------------------------------------------------------------*/ |
| 3 | /*--- A header file containing constants (for assembly code). ---*/ |
| 4 | /*--- vg_constants.h ---*/ |
| 5 | /*--------------------------------------------------------------------*/ |
| 6 | |
| 7 | /* |
njn | c953984 | 2002-10-02 13:26:35 +0000 | [diff] [blame] | 8 | This file is part of Valgrind, an extensible x86 protected-mode |
| 9 | emulator for monitoring program execution on x86-Unixes. |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 10 | |
| 11 | Copyright (C) 2000-2002 Julian Seward |
| 12 | jseward@acm.org |
| 13 | |
| 14 | This program is free software; you can redistribute it and/or |
| 15 | modify it under the terms of the GNU General Public License as |
| 16 | published by the Free Software Foundation; either version 2 of the |
| 17 | License, or (at your option) any later version. |
| 18 | |
| 19 | This program is distributed in the hope that it will be useful, but |
| 20 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 | General Public License for more details. |
| 23 | |
| 24 | You should have received a copy of the GNU General Public License |
| 25 | along with this program; if not, write to the Free Software |
| 26 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 27 | 02111-1307, USA. |
| 28 | |
| 29 | The GNU General Public License is contained in the file COPYING. |
| 30 | */ |
| 31 | |
| 32 | #ifndef __VG_CONSTANTS_SKIN_H |
| 33 | #define __VG_CONSTANTS_SKIN_H |
| 34 | |
| 35 | |
| 36 | /* All symbols externally visible from valgrind.so are prefixed |
| 37 | as specified here. The prefix can be changed, so as to avoid |
| 38 | namespace conflict problems. |
| 39 | */ |
| 40 | #define VGAPPEND(str1,str2) str1##str2 |
| 41 | |
| 42 | /* These macros should add different prefixes so the same base |
| 43 | name can safely be used across different macros. */ |
| 44 | #define VG_(str) VGAPPEND(vgPlain_,str) |
| 45 | #define VGP_(str) VGAPPEND(vgProf_,str) |
| 46 | #define VGOFF_(str) VGAPPEND(vgOff_,str) |
| 47 | |
| 48 | /* Skin specific ones. Note that final name still starts with "vg". */ |
| 49 | #define SK_(str) VGAPPEND(vgSkin_,str) |
| 50 | |
| 51 | #endif /* ndef __VG_CONSTANTS_SKIN_H */ |
| 52 | |
| 53 | /*--------------------------------------------------------------------*/ |
| 54 | /*--- end vg_constants.h ---*/ |
| 55 | /*--------------------------------------------------------------------*/ |