Skip to content

Commit 68461ce

Browse files
fixed faulty macro ccube_make
1 parent 53cbc7e commit 68461ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/sim/cube.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ typedef struct CubeCollider ccube_t;
2424
* Creates a cube with the given length, width, height, and rotation,
2525
* centered at the provided position
2626
*/
27-
#define ccube_make(position, rotation, length, width, height) \
28-
((ccube_t){ .position = position, .rotation = rotation, .length = length, .width = width, .height = height })
27+
#define ccube_make(_position, _rotation, _length, _width, _height) \
28+
((ccube_t){ .position = _position, .rotation = _rotation, .length = _length, .width = _width, .height = _height })
2929

3030
/**
3131
* Checks if a point is inside the given cube

0 commit comments

Comments
 (0)