pent_valgrind.h

Go to the documentation of this file.
00001 /*
00002  *  pent_valgrind.h - Wrapper around valgrind.h/memcheck.h
00003  *
00004  *  Copyright (C) 2006  The Pentagram Team
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00019  */
00020 
00021 #ifndef PENT_VALGRIND_H
00022 #define PENT_VALGRIND_H
00023 
00024 #ifdef USE_VALGRIND
00025 
00026 #include <valgrind/memcheck.h>
00027 
00028 #else
00029 
00030 #define VALGRIND_MAKE_NOACCESS(_qzz_addr,_qzz_len)
00031 #define VALGRIND_MAKE_WRITABLE(_qzz_addr,_qzz_len)
00032 #define VALGRIND_MAKE_READABLE(_qzz_addr,_qzz_len)
00033 
00034 #define VALGRIND_CHECK_READABLE(_qzz_addr,_qzz_len)
00035 #define VALGRIND_CHECK_WRITABLE(_qzz_addr,_qzz_len)
00036 
00037 #define VALGRIND_CREATE_MEMPOOL(pool,rzB,is_zeroed)
00038 #define VALGRIND_DESTROY_MEMPOOL(pool)
00039 #define VALGRIND_MEMPOOL_ALLOC(pool,addr,size)
00040 #define VALGRIND_MEMPOOL_FREE(pool,addr)
00041 
00042 #define VALGRIND_CREATE_BLOCK(_qzz_addr,_qzz_len,_qzz_desc) 0
00043 #define VALGRIND_DISCARD(_wzz_blkindex)
00044 
00045 #endif
00046 
00047 #endif

Generated on Fri Jul 27 22:27:29 2007 for pentagram by  doxygen 1.4.7