maxscript/macros/generic_class.h File Reference
 
 
 
maxscript/macros/generic_class.h File Reference

This reference page is linked to from the following overview topics: SDK Change Details.


Defines

#define  DECLARE_LOCAL_GENERIC_CLASS(_rootclass, _cls)
#define  DEFINE_LOCAL_GENERIC_CLASS(_rootClass, _cls)
#define  DEFINE_LOCAL_GENERIC_CLASS_DEBUG_OK(_rootClass, _cls)

Define Documentation

#define DECLARE_LOCAL_GENERIC_CLASS (   _rootclass,
  _cls 
)
Value:
class _cls##Class : public ValueMetaClass                               \
        {                                                                       \
        public:                                                                 \
                _cls##Class(const MCHAR* name);                                          \
                void collect();                                                    \
        };                                                                      \
        extern _cls##Class _cls##_class;                                        \
        class _rootclass;                                                       \
        typedef Value* (_rootclass::*local_value_vf)(Value**, int);             \
        class _cls : public Generic                                             \
        {                                                                       \
        public:                                                                 \
                local_value_vf fn_ptr;                                             \
                _cls();                                                            \
                _cls(const MCHAR* name, local_value_vf fn);                              \
                classof_methods (_cls, Generic);                                   \
                void collect();                                                    \
                Value* apply(Value** arglist, int count, CallContext* cc = NULL);  \
        };
#define DEFINE_LOCAL_GENERIC_CLASS (   _rootClass,
  _cls 
)
#define DEFINE_LOCAL_GENERIC_CLASS_DEBUG_OK (   _rootClass,
  _cls 
)