Renamed error_message and warning_message macros.

error_message and warning_message are common strings that are likely to
collide. Renamed to bt_id_{error,warning}_message to more strongly
uniquify.

grep -r error_message -l src/BulletInverseDynamics | \
  xargs sed -i -e "s/error_message/bt_id_error_message/g"

grep -r warning_message -l src/BulletInverseDynamics | \
  xargs sed -i -e "s/warning_message/bt_id_warning_message/g"
This commit is contained in:
Michael Beardsworth
2018-07-24 11:19:42 -07:00
parent 0e1dce41ea
commit 3f03b41091
17 changed files with 124 additions and 124 deletions

View File

@@ -6,7 +6,7 @@ namespace btInverseDynamics {
#define CHECK_NULLPTR() \
do { \
if (m_reference == 0x0) { \
error_message("m_reference == 0x0\n"); \
bt_id_error_message("m_reference == 0x0\n"); \
return -1; \
} \
} while (0)
@@ -14,7 +14,7 @@ namespace btInverseDynamics {
#define TRY(x) \
do { \
if (x == -1) { \
error_message("error calling " #x "\n"); \
bt_id_error_message("error calling " #x "\n"); \
return -1; \
} \
} while (0)