X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fe7d506b191a94ce327c2a18733a4d3bc576cac..d524867f4cd44178f8e6d22f37ade851918de628:/include/wx/object.h diff --git a/include/wx/object.h b/include/wx/object.h index 2791952dcb..ca3ade770a 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -160,7 +160,10 @@ wxObject* WXDLLEXPORT_CTORFN wxConstructorFor##name(void) \ #endif -#define IS_KIND_OF(obj, className) obj->IsKindOf(&className::sm_class##className) +#define wxIS_KIND_OF(obj, className) obj->IsKindOf(&className::sm_class##className) + +// Just seems a bit nicer-looking (pretend it's not a macro) +#define wxIsKindOf(obj, className) obj->IsKindOf(&className::sm_class##className) // Unfortunately Borland seems to need this include. #ifdef __BORLANDC__ @@ -190,18 +193,26 @@ class WXDLLEXPORT wxObject #if defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING void * operator new (size_t size, char * fileName = NULL, int lineNum = 0); void operator delete (void * buf); - + // VC++ 6.0 #if _MSC_VER >= 1200 void operator delete(void *buf, char*, int); #endif // Cause problems for VC++ -#ifndef _MSC_VER +// #ifndef _MSC_VER +#if !defined(_MSC_VER) && wxUSE_ARRAY_MEMORY_OPERATORS void * operator new[] (size_t size, char * fileName = NULL, int lineNum = 0); void operator delete[] (void * buf); #endif +/* +#ifdef __MWERKS__ + void * operator new[] (size_t size, char * fileName , int lineNum = 0); + void operator delete[] (void * buf); +#endif +*/ + #endif #if defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT