Skip to content

Commit

Permalink
ubuntsu ActionBuild warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjihiranabe committed Dec 22, 2024
1 parent 506fb37 commit 2f90ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drone_physics/drone_physics_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ static double diff_a(const dp_euler_t* a, const dp_euler_t* b) {
static int AssertCount = 0;

#define assert_almost_equal(a, b) \
assert(++AssertCount && diff(&(a), &(b)) <almost_tolerance || (print_vec(a), fprintf(stderr, " <-?-> "), print_vec(b), fprintf(stderr, "!!\n"), 0))
assert((++AssertCount && diff(&(a), &(b)) <almost_tolerance) || (print_vec(a), fprintf(stderr, " <-?-> "), print_vec(b), fprintf(stderr, "!!\n"), 0))

#define assert_almost_equal_euler(a, b) \
assert(++AssertCount && diff_e(&(a), &(b)) <almost_tolerance || (print_ang(a), fprintf(stderr, " <-?-> "), print_ang(b), fprintf(stderr, "!!\n"), 0))
assert((++AssertCount && diff_e(&(a), &(b)) <almost_tolerance) || (print_ang(a), fprintf(stderr, " <-?-> "), print_ang(b), fprintf(stderr, "!!\n"), 0))

#define print_vec(v) \
fprintf(stderr, "%s=(%g,%g,%g)", #v, v.x, v.y, v.z)
Expand Down

0 comments on commit 2f90ad6

Please sign in to comment.