瀏覽代碼

Do need to export base class.

Malcolm Tyrrell 5 年之前
父節點
當前提交
fa93ba76fe
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/assimp/Exceptional.h

+ 2 - 2
include/assimp/Exceptional.h

@@ -56,7 +56,7 @@ using std::runtime_error;
 #pragma warning(disable : 4275)
 #pragma warning(disable : 4275)
 #endif
 #endif
 
 
-class DeadlyErrorBase : public runtime_error {
+class ASSIMP_API DeadlyErrorBase : public runtime_error {
 protected:
 protected:
     DeadlyErrorBase(Assimp::Formatter::format f);
     DeadlyErrorBase(Assimp::Formatter::format f);
     
     
@@ -145,7 +145,7 @@ struct ExceptionSwallower<void> {
         return ExceptionSwallower<type>()();                                                                                                    \
         return ExceptionSwallower<type>()();                                                                                                    \
     }                                                                                                                                           \
     }                                                                                                                                           \
     catch (...) {                                                                                                                               \
     catch (...) {                                                                                                                               \
-        ASSIMP_END_EXCEPTION_REGION_errorString = "Unknown exception";                                                                             \
+        ASSIMP_END_EXCEPTION_REGION_errorString = "Unknown exception";                                                                          \
         ASSIMP_END_EXCEPTION_REGION_exception = std::current_exception();                                                                       \
         ASSIMP_END_EXCEPTION_REGION_exception = std::current_exception();                                                                       \
         return ExceptionSwallower<type>()();                                                                                                    \
         return ExceptionSwallower<type>()();                                                                                                    \
     }                                                                                                                                           \
     }                                                                                                                                           \