amaiorano / hsm

C++ framework library to simplify state-driven code
MIT License
107 stars 38 forks source link

static code analysis identify issues in HSM_ASSERT_MSG(cond, msg) #22

Open Marc-Frederick opened 7 months ago

Marc-Frederick commented 7 months ago

Static code analysis ( sonarqube) report an error with this macro:

V1003: The macro 'HSM_ASSERT_MSG' is a dangerous expression. The parameter 'msg' must be surrounded by parentheses.

amaiorano commented 7 months ago

Hey MF! Hope you're doing well :) If you don't mind creating a PR to fix that, I'll be happy to merge it.