MCPcopy Create free account
hub / github.com/axmolengine/axmol / cpArrayPush

Function cpArrayPush

3rdparty/chipmunk/src/cpArray.c:50–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void
51cpArrayPush(cpArray *arr, void *object)
52{
53 if(arr->num == arr->max){
54 arr->max = 3*(arr->max + 1)/2;
55 arr->arr = (void **)cprealloc(arr->arr, arr->max*sizeof(void*));
56 }
57
58 arr->arr[arr->num] = object;
59 arr->num++;
60}
61
62void *
63cpArrayPop(cpArray *arr)

Callers 15

cpSpaceAddBodyFunction · 0.85
cpSpaceAddConstraintFunction · 0.85
cachedArbitersFilterFunction · 0.85
PairFromPoolFunction · 0.85
NodeFromPoolFunction · 0.85
cpHandleReleaseFunction · 0.85
handleSetTransFunction · 0.85
getEmptyBinFunction · 0.85
cpBodySetTypeFunction · 0.85
getUnusedBinFunction · 0.85
cpSpaceActivateBodyFunction · 0.85
cpSpaceProcessComponentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected