Browse Source

refactor & fix: 修复动态库编译错误

SongZihuan 3 năm trước cách đây
mục cha
commit
efff92e196
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      include/tool/tool-exception.h

+ 3 - 2
include/tool/tool-exception.h

@@ -1,14 +1,15 @@
 #ifndef AFUN_TOOL_EXCEPTION_H
 #define AFUN_TOOL_EXCEPTION_H
+#include "aFunToolExport.h"
 #include "tool-type.h"
 
 namespace aFuntool {
-    class aFunException : public std::exception {
+    class AFUN_TOOL_EXPORT aFunException : public std::exception {
         std::string message;
     public:
         inline explicit aFunException(std::string msg);
         virtual const char *what();
-        inline const std::string &getMessage() const;
+        [[nodiscard]] inline const std::string &getMessage() const;
     };
 
     class aFuntoolException : public aFunException {