maxscript/macros/generic_class.h File Reference

generic_class.h File Reference

Macros

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

Macro Definition Documentation

#define DECLARE_LOCAL_GENERIC_CLASS (   _rootclass,
  _cls 
)
Value:
class _cls##Class : public ValueMetaClass \
{ \
public: \
_cls##Class(const MCHAR* name); \
}; \
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); \
void collect(); \
Value* apply(Value** arglist, int count, CallContext* cc = NULL); \
};
MAXMEM_EXTERN_C UtilExport void(__cdecl *MAX_free)(void *memblock)
#define classof_methods(_cls, _super)
Definition: value.h:322
Definition: value.h:290
Value *(MS_LOCAL_ROOT_CLASS::* local_value_vf)(Value **, int)
Definition: local_class.h:71
#define NULL
Definition: autoptr.h:18
Definition: functions.h:55
#define MCHAR
MBCS/Unicode helper defines std::wofstream doesn't mix well with Unicode.
Definition: strbasic.h:42
Definition: value.h:106
virtual void collect()=0
Definition: functions.h:85
#define DEFINE_LOCAL_GENERIC_CLASS (   _rootClass,
  _cls 
)