Browse Source

define a poison value to help debugging

Cédric Augonnet 15 years ago
parent
commit
3bfae32576
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/starpu-util.h

+ 2 - 0
include/starpu-util.h

@@ -34,6 +34,8 @@
 extern "C" {
 extern "C" {
 #endif
 #endif
 
 
+#define STARPU_POISON_PTR	((void *)0xdeadbeef)
+
 #define STARPU_MIN(a,b)	((a)<(b)?(a):(b))
 #define STARPU_MIN(a,b)	((a)<(b)?(a):(b))
 #define STARPU_MAX(a,b)	((a)<(b)?(b):(a))
 #define STARPU_MAX(a,b)	((a)<(b)?(b):(a))