Răsfoiți Sursa

*** empty log message ***

David Rose 25 ani în urmă
părinte
comite
64d8035de4
2 a modificat fișierele cu 17 adăugiri și 5 ștergeri
  1. 13 2
      dtool/src/dconfig/notifyCategoryProxy.h
  2. 4 3
      panda/src/express/typeHandle.h

+ 13 - 2
dtool/src/dconfig/notifyCategoryProxy.h

@@ -124,15 +124,26 @@ INLINE ostream &operator << (ostream &out, NotifyCategoryProxy<GetCategory> &pro
 #else // WIN32_VC
 
 #define NotifyCategoryDecl(basename, expcl, exptp) \
-  class expcl NotifyCategoryGetCategory_ ## basename { \
+  class NotifyCategoryGetCategory_ ## basename { \
   public: \
     NotifyCategoryGetCategory_ ## basename(); \
     static NotifyCategory *get_category(); \
   }; \
-  extern expcl NotifyCategoryProxy<NotifyCategoryGetCategory_ ## basename> basename ## _cat;
+  extern NotifyCategoryProxy<NotifyCategoryGetCategory_ ## basename> basename ## _cat;
 
 #endif  // WIN32_VC
 
+// This macro is the same as the above, except that it declares a category
+// that is not intended to be exported from any DLL.
+
+#define NotifyCategoryDeclNoExport(basename) \
+  class NotifyCategoryGetCategory_ ## basename { \
+  public: \
+    NotifyCategoryGetCategory_ ## basename(); \
+    static NotifyCategory *get_category(); \
+  }; \
+  extern NotifyCategoryProxy<NotifyCategoryGetCategory_ ## basename> basename ## _cat;
+
 // This macro defines the actual declaration of the
 // NotifyCategoryProxy object defined above; it should appear in the
 // config_*.C file.  In this macro, parent_category may either be the

+ 4 - 3
panda/src/express/typeHandle.h

@@ -294,14 +294,15 @@ PUBLISHED:
   // get_class_type().
   virtual TypeHandle get_type() const=0;
 
+  INLINE bool is_of_type(TypeHandle handle) const;
+  INLINE bool is_exact_type(TypeHandle handle) const;
+
+public:
   // Derived classes should override this function to call
   // init_type().  It will only be called in error situations when the
   // type was for some reason not properly initialized.
   virtual TypeHandle force_init_type()=0;
 
-  INLINE bool is_of_type(TypeHandle handle) const;
-  INLINE bool is_exact_type(TypeHandle handle) const;
-
 public:
   static TypeHandle get_class_type() {
     return _type_handle;