Przeglądaj źródła

*** empty log message ***

David Rose 25 lat temu
rodzic
commit
64d8035de4

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

@@ -124,15 +124,26 @@ INLINE ostream &operator << (ostream &out, NotifyCategoryProxy<GetCategory> &pro
 #else // WIN32_VC
 #else // WIN32_VC
 
 
 #define NotifyCategoryDecl(basename, expcl, exptp) \
 #define NotifyCategoryDecl(basename, expcl, exptp) \
-  class expcl NotifyCategoryGetCategory_ ## basename { \
+  class NotifyCategoryGetCategory_ ## basename { \
   public: \
   public: \
     NotifyCategoryGetCategory_ ## basename(); \
     NotifyCategoryGetCategory_ ## basename(); \
     static NotifyCategory *get_category(); \
     static NotifyCategory *get_category(); \
   }; \
   }; \
-  extern expcl NotifyCategoryProxy<NotifyCategoryGetCategory_ ## basename> basename ## _cat;
+  extern NotifyCategoryProxy<NotifyCategoryGetCategory_ ## basename> basename ## _cat;
 
 
 #endif  // WIN32_VC
 #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
 // This macro defines the actual declaration of the
 // NotifyCategoryProxy object defined above; it should appear in the
 // NotifyCategoryProxy object defined above; it should appear in the
 // config_*.C file.  In this macro, parent_category may either be 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().
   // get_class_type().
   virtual TypeHandle get_type() const=0;
   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
   // Derived classes should override this function to call
   // init_type().  It will only be called in error situations when the
   // init_type().  It will only be called in error situations when the
   // type was for some reason not properly initialized.
   // type was for some reason not properly initialized.
   virtual TypeHandle force_init_type()=0;
   virtual TypeHandle force_init_type()=0;
 
 
-  INLINE bool is_of_type(TypeHandle handle) const;
-  INLINE bool is_exact_type(TypeHandle handle) const;
-
 public:
 public:
   static TypeHandle get_class_type() {
   static TypeHandle get_class_type() {
     return _type_handle;
     return _type_handle;