-
Notifications
You must be signed in to change notification settings - Fork 8
/
chipmunk.fbfrog
70 lines (63 loc) · 2.04 KB
/
chipmunk.fbfrog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
-replacements chipmunk.replacements
-removeinclude TargetConditionals.h
-removeinclude malloc.h
-removeinclude alloca.h
-rename float.h crt/limits.bi
# Some inline functions have "len"/"data" parameters (FB keywords)
-rename_ len
-rename_ data
# The cpfclamp01 inline function/macro has a parameter "f" but also contains
# number literals like "0.0f", and fbc inserts the macro argument even into the
# f type suffix...
-rename_ f
-removedefine CP_EXPORT
-removedefine CP_ALLOW_PRIVATE_ACCESS
-removedefine CP_PRIVATE
# #defined to __builtin_inf(); we don't want that everywhere
# FB's CRT headers define INFINITY already anyways...
-noexpand INFINITY
-removedefine INFINITY
-addforwarddecl cpArbiter
-addforwarddecl cpArray
-addforwarddecl cpBBTree
-addforwarddecl cpBody
-addforwarddecl cpCircleShape
-addforwarddecl cpCollisionHandler
-addforwarddecl cpConstraint
-addforwarddecl cpContactBufferHeader
-addforwarddecl cpContactPointSet
-addforwarddecl cpDampedRotarySpring
-addforwarddecl cpDampedSpring
-addforwarddecl cpGearJoint
-addforwarddecl cpGrooveJoint
-addforwarddecl cpHashSet
-addforwarddecl cpHastySpace
-addforwarddecl cpPinJoint
-addforwarddecl cpPivotJoint
-addforwarddecl cpPolyShape
-addforwarddecl cpRatchetJoint
-addforwarddecl cpRotaryLimitJoint
-addforwarddecl cpSegmentShape
-addforwarddecl cpShape
-addforwarddecl cpSimpleMotor
-addforwarddecl cpSimpleMotorJoint
-addforwarddecl cpSlideJoint
-addforwarddecl cpSpace
-addforwarddecl cpSpaceHash
-addforwarddecl cpSpatialIndex
-addforwarddecl cpSpatialIndexClass
-addforwarddecl cpSweep1D
# Translate them as "fast" macros instead of "slow" private functions, as in
# fbc's old headers...
-forcefunction2macro cpBBNewForExtents
-forcefunction2macro cpBBNewForCircle
-forcefunction2macro cpBBIntersects
-forcefunction2macro cpBBContainsBB
-forcefunction2macro cpBBContainsVect
-forcefunction2macro cpBBMerge
-forcefunction2macro cpBBExpand
-forcefunction2macro cpBBCenter
-forcefunction2macro cpBBArea
-forcefunction2macro cpBBMergedArea
-forcefunction2macro cpBBClampVect
-forcefunction2macro cpBBOffset