Mercurial > projects > chipmunkd
comparison trunk/chipmunkd/cpArbiter.d @ 13:c03a41d47b60
- finished all constraints properties
- implemented cpAssertWarn the mixin way
author | Extrawurst |
---|---|
date | Fri, 03 Dec 2010 21:38:01 +0100 |
parents | 7ebbd4d05553 |
children | df4ebc8add66 |
comparison
equal
deleted
inserted
replaced
12:8697699b2c5a | 13:c03a41d47b60 |
---|---|
105 (*a) = arb.private_b, (*b) = arb.private_a; | 105 (*a) = arb.private_b, (*b) = arb.private_a; |
106 } else { | 106 } else { |
107 (*a) = arb.private_a, (*b) = arb.private_b; | 107 (*a) = arb.private_a, (*b) = arb.private_b; |
108 } | 108 } |
109 } | 109 } |
110 //#define CP_ARBITER_GET_SHAPES(arb, a, b) cpShape *a, *b; cpArbiterGetShapes(arb, &a, &b); | 110 |
111 template CP_ARBITER_GET_SHAPES(string arb,string a,string b) | 111 template CP_ARBITER_GET_SHAPES(string arb,string a,string b) |
112 { | 112 { |
113 enum CP_ARBITER_GET_SHAPES = "cpShape* "~a~", "~b~";"~ | 113 enum CP_ARBITER_GET_SHAPES = "cpShape* "~a~", "~b~";"~ |
114 "cpArbiterGetShapes("~arb~", &"~a~", &"~b~");"; | 114 "cpArbiterGetShapes("~arb~", &"~a~", &"~b~");"; |
115 } | 115 } |