Added an #ifndef PRINT

to get rid of this: "../../blenlib/BLI_blenlib.h", line 332: warning: macro redefined: PRINT

I know pathetic but hey...

Kent
This commit is contained in:
Kent Mein
2004-10-29 13:30:34 +00:00
parent 3d815c3cf6
commit bd9ac7d6ec

View File

@@ -329,10 +329,13 @@ void BLI_setScanFillObjectRef(void* ob);
void BLI_setScanFillColourRef(char* c);
#define PRNTSUB(type,arg) printf(#arg ": %" #type " ", arg)
#ifndef PRINT
#define PRINT(t,v) {PRNTSUB(t,v); printf("\n");}
#define PRINT2(t1,v1,t2,v2) {PRNTSUB(t1,v1); PRNTSUB(t2,v2); printf("\n");}
#define PRINT3(t1,v1,t2,v2,t3,v3) {PRNTSUB(t1,v1); PRNTSUB(t2,v2); PRNTSUB(t3,v3); printf("\n");}
#define PRINT4(t1,v1,t2,v2,t3,v3,t4,v4) {PRNTSUB(t1,v1); PRNTSUB(t2,v2); PRNTSUB(t3,v3); PRNTSUB(t4,v4); printf("\n");}
#endif
/**
* @param array The array in question