From: Julian Seward Date: Thu, 3 Apr 2003 22:09:13 +0000 (+0000) Subject: Document renaming of valgrind.h to memcheck.h. X-Git-Tag: svn/VALGRIND_2_0_0~252 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=504bf9fb88cd6873b68f5f03ffab81838a251e1b;p=thirdparty%2Fvalgrind.git Document renaming of valgrind.h to memcheck.h. MERGE TO STABLE git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1498 --- diff --git a/coregrind/docs/coregrind_core.html b/coregrind/docs/coregrind_core.html index 1052a71d2a..16b7c1bf8b 100644 --- a/coregrind/docs/coregrind_core.html +++ b/coregrind/docs/coregrind_core.html @@ -722,8 +722,18 @@ program can tell Valgrind about changes in memory range permissions that Valgrind would not otherwise know about, and so allows clients to get Valgrind to do arbitrary custom checks.

-Clients need to include the header file valgrind.h to -make this work. The macros therein have the magical property that +Clients need to include a skin-specific header file to make +this work. For most people this will be memcheck.h, +which should be installed in the include directory +when you did make install. +memcheck.h is the correct file to use with both +the Memcheck (default) and Addrcheck skins. +

+Note for those migrating from 1.0.X, that the old header file +valgrind.h no longer works, and will cause a compilation +failure (deliberately) if included. +

+The macros in memcheck.h have the magical property that they generate code in-line which Valgrind can spot. However, the code does nothing when not run on Valgrind, so you are not forced to run your program on Valgrind just because you use the macros in this file.