Mercurial > projects > chipmunkd
diff trunk/chipmunkd/constraints/cpConstraint.d @ 13:c03a41d47b60
- finished all constraints properties
- implemented cpAssertWarn the mixin way
author | Extrawurst |
---|---|
date | Fri, 03 Dec 2010 21:38:01 +0100 |
parents | 707dd4e10c28 |
children | df4ebc8add66 |
line wrap: on
line diff
--- a/trunk/chipmunkd/constraints/cpConstraint.d Fri Dec 03 01:01:39 2010 +0100 +++ b/trunk/chipmunkd/constraints/cpConstraint.d Fri Dec 03 21:38:01 2010 +0100 @@ -58,9 +58,6 @@ "assert("~constraint~".klass == "~_struct~"GetClass(), \"Constraint is not a "~_struct~"\");"; } -//#define cpConstraintCheckCast(constraint, struct) \ -// cpAssert(constraint->klass == struct##GetClass(), "Constraint is not a "#struct); - template CP_DefineConstraintGetter(string _struct,string type,string member,string name) { enum CP_DefineConstraintGetter = @@ -71,13 +68,6 @@ "}"; } -//#define CP_DefineConstraintGetter(struct, type, member, name) \ -//static inline type \ -//struct##Get##name(const cpConstraint *constraint){ \ -// cpConstraintCheckCast(constraint, struct); \ -// return ((struct *)constraint)->member; \ -//} \ - template CP_DefineConstraintSetter(string _struct,string type,string member,string name) { enum CP_DefineConstraintSetter = @@ -88,14 +78,6 @@ "}"; } -//#define CP_DefineConstraintSetter(struct, type, member, name) \ -//static inline void \ -//struct##Set##name(cpConstraint *constraint, type value){ \ -// cpConstraintCheckCast(constraint, struct); \ -// cpConstraintActivateBodies(constraint); \ -// ((struct *)constraint)->member = value; \ -//} \ - template CP_DefineConstraintProperty(string _struct,string type,string member,string name) { enum CP_DefineConstraintProperty = @@ -103,10 +85,6 @@ } -//#define CP_DefineConstraintProperty(struct, type, member, name) \ -//CP_DefineConstraintGetter(struct, type, member, name) \ -//CP_DefineConstraintSetter(struct, type, member, name) -//TODO: //// Built in Joint types public import chipmunkd.constraints.cpPinJoint; public import chipmunkd.constraints.cpSlideJoint;