blob: 42f13dc01c995d0b0a32d980b2f0d11c2cefcbe4 [file] [log] [blame]
sewardjde4a1d02002-03-22 01:27:54 +00001
2/*--------------------------------------------------------------------*/
njnc7561b92005-06-19 01:24:32 +00003/*--- Header imported directly by every asm file, and indirectly ---*/
4/*--- (via pub_tool_basics.h) by every C file. ---*/
5/*--- pub_tool_basics_asm.h ---*/
sewardjde4a1d02002-03-22 01:27:54 +00006/*--------------------------------------------------------------------*/
njnc7561b92005-06-19 01:24:32 +00007
sewardjde4a1d02002-03-22 01:27:54 +00008/*
njnb9c427c2004-12-01 14:14:42 +00009 This file is part of Valgrind, a dynamic binary instrumentation
10 framework.
sewardjde4a1d02002-03-22 01:27:54 +000011
njn53612422005-03-12 16:22:54 +000012 Copyright (C) 2000-2005 Julian Seward
sewardjde4a1d02002-03-22 01:27:54 +000013 jseward@acm.org
sewardjde4a1d02002-03-22 01:27:54 +000014
15 This program is free software; you can redistribute it and/or
16 modify it under the terms of the GNU General Public License as
17 published by the Free Software Foundation; either version 2 of the
18 License, or (at your option) any later version.
19
20 This program is distributed in the hope that it will be useful, but
21 WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 General Public License for more details.
24
25 You should have received a copy of the GNU General Public License
26 along with this program; if not, write to the Free Software
27 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
28 02111-1307, USA.
29
njn25e49d8e72002-09-23 09:36:25 +000030 The GNU General Public License is contained in the file COPYING.
sewardjde4a1d02002-03-22 01:27:54 +000031*/
32
njnc7561b92005-06-19 01:24:32 +000033#ifndef __PUB_TOOL_BASICS_ASM_H
34#define __PUB_TOOL_BASICS_ASM_H
sewardjde4a1d02002-03-22 01:27:54 +000035
njnc7561b92005-06-19 01:24:32 +000036/* All symbols externally visible from Valgrind are prefixed
37 as specified here to avoid namespace conflict problems. */
njn767eb422005-06-10 23:09:45 +000038
njnc7561b92005-06-19 01:24:32 +000039#define VGAPPEND(str1,str2) str1##str2
njnf536bbb2005-06-13 04:21:38 +000040
sewardj7eb7c582005-06-23 01:02:53 +000041/* VG_ is for symbols exported from modules. ML_ (module-local) is
42 for symbols which are not intended to be visible outside modules,
43 but which cannot be declared as C 'static's since they need to be
44 visible across C files within a given module. It is a mistake for
45 a ML_ name to appear in a pub_core_*.h or pub_tool_*.h file.
46 Likewise it is a mistake for a VG_ name to appear in a priv_*.h
47 file.
48*/
49#define VG_(str) VGAPPEND(vgPlain_, str)
50#define ML_(str) VGAPPEND(vgModuleLocal_, str)
51
njnc7561b92005-06-19 01:24:32 +000052#define VGA_(str) VGAPPEND(vgArch_, str)
53#define VGO_(str) VGAPPEND(vgOS_, str)
54#define VGP_(str) VGAPPEND(vgPlatform_, str)
njn767eb422005-06-10 23:09:45 +000055
njnc7561b92005-06-19 01:24:32 +000056#endif /* __PUB_TOOL_BASICS_ASM_H */
nethercotec06e2132004-09-03 13:45:29 +000057
sewardjde4a1d02002-03-22 01:27:54 +000058/*--------------------------------------------------------------------*/
nethercote109d0df2004-09-02 08:10:13 +000059/*--- end ---*/
sewardjde4a1d02002-03-22 01:27:54 +000060/*--------------------------------------------------------------------*/