[Gridflow-cvs] [svn] commit: r4043 - /trunk/gridflow.h

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Thu Jul 17 12:51:03 EDT 2008


Author: matju
Date: Thu Jul 17 12:51:02 2008
New Revision: 4043

Log:
remove duplicate item from error message

Modified:
    trunk/gridflow.h

Modified: trunk/gridflow.h
==============================================================================
--- trunk/gridflow.h (original)
+++ trunk/gridflow.h Thu Jul 17 12:51:02 2008
@@ -848,10 +848,9 @@
 
 #define ARGS(OBJ) (OBJ->bself->binbuf_string().data())
 #define NOTEMPTY(_a_) if (!(_a_)) RAISE("in [%s], '%s' is empty",ARGS(this), #_a_);
-#define SAME_TYPE(_a_,_b_) \
-	if ((_a_)->nt != (_b_)->nt) RAISE("%s: same type please (%s has %s; %s has %s)", ARGS(this), \
-		#_a_, number_type_table[(_a_)->nt].name, \
-		#_b_, number_type_table[(_b_)->nt].name);
+#define SAME_TYPE(_a_,_b_) if ((_a_)->nt != (_b_)->nt) RAISE(same type please (%s has %s; %s has %s)", \
+	#_a_, number_type_table[(_a_)->nt].name, \
+	#_b_, number_type_table[(_b_)->nt].name);
 static void SAME_DIM(int n, P<Dim> a, int ai, P<Dim> b, int bi) {
 	if (ai+n > a->n) RAISE("left hand: not enough dimensions");
 	if (bi+n > b->n) RAISE("right hand: not enough dimensions");



More information about the Gridflow-cvs mailing list