|
@@ -176,10 +176,10 @@ namespace BansheeEngine
|
|
|
#ifndef BS_EXCEPT
|
|
#ifndef BS_EXCEPT
|
|
|
#define BS_EXCEPT(type, desc) \
|
|
#define BS_EXCEPT(type, desc) \
|
|
|
{ \
|
|
{ \
|
|
|
- static_assert((std::is_base_of<BansheeEngine::Exception, type##>::value), "Invalid exception type (" #type ") for BS_EXCEPT macro. It needs to derive from BansheeEngine::Exception."); \
|
|
|
|
|
|
|
+ static_assert((std::is_base_of<BansheeEngine::Exception, type>::value), "Invalid exception type (" #type ") for BS_EXCEPT macro. It needs to derive from BansheeEngine::Exception."); \
|
|
|
gCrashHandler().reportCrash(#type, desc, __PRETTY_FUNCTION__, __FILE__, __LINE__); \
|
|
gCrashHandler().reportCrash(#type, desc, __PRETTY_FUNCTION__, __FILE__, __LINE__); \
|
|
|
PlatformUtility::terminate(true); \
|
|
PlatformUtility::terminate(true); \
|
|
|
- throw type##(desc, __PRETTY_FUNCTION__, __FILE__, __LINE__); \
|
|
|
|
|
|
|
+ throw type(desc, __PRETTY_FUNCTION__, __FILE__, __LINE__); \
|
|
|
}
|
|
}
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|