blob: ee56b91dfd8ed435218471ddb2ddd098fc5a6cb7 [file] [log] [blame]
njn25e49d8e72002-09-23 09:36:25 +00001
2/*--------------------------------------------------------------------*/
3/*--- A header file containing constants (for assembly code). ---*/
4/*--- vg_constants.h ---*/
5/*--------------------------------------------------------------------*/
6
7/*
njnc9539842002-10-02 13:26:35 +00008 This file is part of Valgrind, an extensible x86 protected-mode
9 emulator for monitoring program execution on x86-Unixes.
njn25e49d8e72002-09-23 09:36:25 +000010
nethercotebb1c9912004-01-04 16:43:23 +000011 Copyright (C) 2000-2004 Julian Seward
njn25e49d8e72002-09-23 09:36:25 +000012 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)
sewardj11f0bb42003-04-26 20:11:15 +000047#define VGR_(str) VGAPPEND(vgAllRoadsLeadToRome_,str)
fitzhardinge98abfc72003-12-16 02:05:15 +000048#define VGINJ_(str) VGAPPEND(__vgInject_,str)
njn25e49d8e72002-09-23 09:36:25 +000049
50/* Skin specific ones. Note that final name still starts with "vg". */
51#define SK_(str) VGAPPEND(vgSkin_,str)
52
fitzhardinge98abfc72003-12-16 02:05:15 +000053/* 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
njn25e49d8e72002-09-23 09:36:25 +000059#endif /* ndef __VG_CONSTANTS_SKIN_H */
60
61/*--------------------------------------------------------------------*/
62/*--- end vg_constants.h ---*/
63/*--------------------------------------------------------------------*/