[Bf-committers] Casting arrays (matrices)

Chris Want bf-committers@blender.org
Wed, 02 Jul 2003 18:00:53 -0600


Maybe this is a step backwards, but perhaps some macro magic
to make everyone happy? e.g.,

	void
ConstAwareMat3Inv(
	float m1[][3],
	const float m2[][3]
);

#define Mat3Inv(A,B) ConstAwareMat3Inv( (A), (float const (*)[3]) (B) )

Chris

(Next: let's talk about that kooky prototype style! >=P)