Tweaks for exception handling.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-07-28 19:37:03 +02:00
parent e2e706693b
commit 13c4609cdd
5 changed files with 12 additions and 10 deletions

View File

@@ -13,9 +13,8 @@ public:
};
#define THROW_CREATURE(message) \
{ \
std::stringstream ss; \
ss << "[" << __FILENAME__ << ":" << __LINE__ << "] " << message; \
throw CreatureException(ss.str()); \
}
std::stringstream ___ss; \
___ss << "[" << __FILENAME__ << ":" << __LINE__ << "] " << message; \
throw CreatureException(___ss.str());
#endif // CREATURELIB_CREATUREEXCEPTION_HPP