comparison trunk/chipmunkd/constraints/cpGearJoint.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
73 getImpulse(cpGearJoint *joint) 73 getImpulse(cpGearJoint *joint)
74 { 74 {
75 return cpfabs(joint.jAcc); 75 return cpfabs(joint.jAcc);
76 } 76 }
77 77
78 static /+const+/ cpConstraintClass klass = { 78 __gshared /+const+/ cpConstraintClass klass = {
79 cast(cpConstraintPreStepFunction)&preStep, 79 cast(cpConstraintPreStepFunction)&preStep,
80 cast(cpConstraintApplyImpulseFunction)&applyImpulse, 80 cast(cpConstraintApplyImpulseFunction)&applyImpulse,
81 cast(cpConstraintGetImpulseFunction)&getImpulse, 81 cast(cpConstraintGetImpulseFunction)&getImpulse,
82 }; 82 };
83 mixin(CP_DefineClassGetter!("cpGearJoint")); 83 mixin(CP_DefineClassGetter!("cpGearJoint"));