Skip to content

Commit

Permalink
[c] Guarded macros against expressions of death
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Jul 6, 2016
1 parent 005861c commit 44be679
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spine-c/include/spine/extension.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@

#define SIN_DEG(A) SIN((A) * DEG_RAD)
#define COS_DEG(A) COS((A) * DEG_RAD)
#define CLAMP(x, min, max) (x < min ? min : (x > max ? max : x))
#define MIN(x, y) (x < y ? x : y)
#define MAX(x, y) (x > y ? x : y)
#define CLAMP(x, min, max) ((x) < (min) ? (min) : ((x) > (max) ? (max) : (x)))
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#define MAX(x, y) ((x) > (y) ? (x) : (y))

#define UNUSED(x) (void)(x)

Expand Down

0 comments on commit 44be679

Please sign in to comment.