mirror of
https://github.com/libAthena/athena.git
synced 2025-12-12 14:46:12 +00:00
* Fix styling
This commit is contained in:
@@ -53,10 +53,13 @@ public:
|
||||
do { \
|
||||
if (atGetExceptionHandler()) {atGetExceptionHandler()(__FILE__, AT_PRETTY_FUNCTION, __LINE__, __VA_ARGS__); return; \
|
||||
} else {
|
||||
std::string msg = Athena::utility::sprintf(args, __VA_ARGS__); \
|
||||
throw Athena::error::InvalidOperationException(std::string("InvalidOperationException: ")+msg, __FILE__, AT_PRETTY_FUNCTION, __LINE__); \
|
||||
} \
|
||||
} while(0)
|
||||
std::string msg = Athena::utility::sprintf(args, __VA_ARGS__);
|
||||
\
|
||||
throw Athena::error::InvalidOperationException(std::string("InvalidOperationException: ") + msg, __FILE__, AT_PRETTY_FUNCTION, __LINE__);
|
||||
\
|
||||
} \
|
||||
|
||||
} while (0)
|
||||
#elif defined (__GNUC__)
|
||||
#define THROW_INVALID_OPERATION_EXCEPTION(args...) \
|
||||
do { \
|
||||
@@ -72,10 +75,14 @@ public:
|
||||
do { \
|
||||
if (atGetExceptionHandler()) {atGetExceptionHandler()(__FILE__, AT_PRETTY_FUNCTION, __LINE__, __VA_ARGS__); return ret; \
|
||||
} else {
|
||||
std::string msg = Athena::utility::sprintf(args, __VA_ARGS__); \
|
||||
throw Athena::error::InvalidOperationException(std::string("InvalidOperationException: ")+msg, __FILE__, AT_PRETTY_FUNCTION, __LINE__); \
|
||||
} \
|
||||
} while(0)
|
||||
std::string msg = Athena::utility::sprintf(args, __VA_ARGS__);
|
||||
|
||||
\
|
||||
throw Athena::error::InvalidOperationException(std::string("InvalidOperationException: ") + msg, __FILE__, AT_PRETTY_FUNCTION, __LINE__);
|
||||
\
|
||||
} \
|
||||
|
||||
} while (0)
|
||||
#elif defined(__GNUC__)
|
||||
#define THROW_INVALID_OPERATION_EXCEPTION_RETURN(ret, args...) \
|
||||
do { \
|
||||
|
||||
Reference in New Issue
Block a user