]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make the version number available in the valgrind.h headers, so
authorJulian Seward <jseward@acm.org>
Wed, 3 Mar 2010 22:57:47 +0000 (22:57 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 3 Mar 2010 22:57:47 +0000 (22:57 +0000)
clients can do version-specific client requests.  This is something we
should have done long ago.  Still needs a way to regtest this, to
check that the embedded version matches what's stated in configure.in.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11061

include/valgrind.h

index ca10b1a0ddfd6d7a1a0f37e376e68b04cb1a1dea..65993fbb32f004d566d915197c5b992bbbb8c140 100644 (file)
 #ifndef __VALGRIND_H
 #define __VALGRIND_H
 
+
+/* ------------------------------------------------------------------ */
+/* VERSION NUMBER OF VALGRIND                                         */
+/* ------------------------------------------------------------------ */
+
+/* Specify Valgrind's version number, so that user code can
+   conditionally compile based on our version number. */
+#define __VALGRIND__          3
+#define __VALGRIND_MINOR__    6
+
+
 #include <stdarg.h>
 
 /* Nb: this file might be included in a file compiled with -ansi.  So