blob: 2112dd1ef979d19919e84c3faf0f3902bf9c44a2 [file] [log] [blame]
sewardjde4a1d02002-03-22 01:27:54 +00001
2/*--------------------------------------------------------------------*/
sewardj45f4e7c2005-09-27 19:20:21 +00003/*--- Header imported directly by every tool asm file, and ---*/
4/*--- (via pub_tool_basics.h) by every tool C file. ---*/
njnc7561b92005-06-19 01:24:32 +00005/*--- 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
sewardj4d474d02008-02-11 11:34:59 +000012 Copyright (C) 2000-2008 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#endif /* __PUB_TOOL_BASICS_ASM_H */
nethercotec06e2132004-09-03 13:45:29 +000053
sewardjde4a1d02002-03-22 01:27:54 +000054/*--------------------------------------------------------------------*/
nethercote109d0df2004-09-02 08:10:13 +000055/*--- end ---*/
sewardjde4a1d02002-03-22 01:27:54 +000056/*--------------------------------------------------------------------*/