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 | |
nethercote | bb1c991 | 2004-01-04 16:43:23 +0000 | [diff] [blame] | 11 | Copyright (C) 2000-2004 Julian Seward |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 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) |
sewardj | 11f0bb4 | 2003-04-26 20:11:15 +0000 | [diff] [blame] | 47 | #define VGR_(str) VGAPPEND(vgAllRoadsLeadToRome_,str) |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 48 | #define VGINJ_(str) VGAPPEND(__vgInject_,str) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 49 | |
| 50 | /* Skin specific ones. Note that final name still starts with "vg". */ |
| 51 | #define SK_(str) VGAPPEND(vgSkin_,str) |
| 52 | |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 53 | /* This is specifically for stringifying VG_(x) function names. We |
| 54 | need to do two macroexpansions to get the VG_ macro expanded before |
| 55 | stringifying */ |
| 56 | #define _STR(x) #x |
| 57 | #define STR(x) _STR(x) |
| 58 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 59 | #endif /* ndef __VG_CONSTANTS_SKIN_H */ |
| 60 | |
| 61 | /*--------------------------------------------------------------------*/ |
| 62 | /*--- end vg_constants.h ---*/ |
| 63 | /*--------------------------------------------------------------------*/ |