comparison trunk/chipmunkd/constraints/cpRatchetJoint.d @ 28:4541ca17975b

use __gshared as chipmunk heavily relies on globals and D would otherwise make them TLS
author Extrawurst
date Mon, 13 Dec 2010 21:40:56 +0100
parents c03a41d47b60
children
comparison
equal deleted inserted replaced
27:b45f0b140d85 28:4541ca17975b
92 getImpulse(cpRatchetJoint *joint) 92 getImpulse(cpRatchetJoint *joint)
93 { 93 {
94 return cpfabs(joint.jAcc); 94 return cpfabs(joint.jAcc);
95 } 95 }
96 96
97 static /+const+/ cpConstraintClass klass = { 97 __gshared /+const+/ cpConstraintClass klass = {
98 cast(cpConstraintPreStepFunction)&preStep, 98 cast(cpConstraintPreStepFunction)&preStep,
99 cast(cpConstraintApplyImpulseFunction)&applyImpulse, 99 cast(cpConstraintApplyImpulseFunction)&applyImpulse,
100 cast(cpConstraintGetImpulseFunction)&getImpulse, 100 cast(cpConstraintGetImpulseFunction)&getImpulse,
101 }; 101 };
102 mixin(CP_DefineClassGetter!("cpRatchetJoint")); 102 mixin(CP_DefineClassGetter!("cpRatchetJoint"));