ZealanL / RocketSim

A C++ library for simulating Rocket League games at maximum efficiency
MIT License
63 stars 15 forks source link

Avoid redefinition of MAX_ITERATIONS macro #12

Closed benjamincburns closed 1 year ago

benjamincburns commented 1 year ago

This triggers a warning under Clang on macOS

benjamincburns commented 1 year ago

In case you want more context on this one:

In file included from /Users/bburns/projects/rocketsim/libsrc/bullet3-3.24/btBulletCollisionAll.cpp:43:
/Users/bburns/projects/rocketsim/libsrc/bullet3-3.24/BulletCollision/NarrowPhaseCollision/btGjkConvexCast.cpp:25:9: warning: 'MAX_ITERATIONS' macro redefined [-Wmacro-redefined]
#define MAX_ITERATIONS 32
        ^
/Users/bburns/projects/rocketsim/libsrc/bullet3-3.24/BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.cpp:46:9: note: previous definition is here
#define MAX_ITERATIONS 64
        ^
1 warning generated.