? (className *)(obj) \
: (className *)0)
+// The 'this' pointer is always true, so use this version to cast the this
+// pointer and avoid compiler warnings.
+#define wxDynamicCastThis(className) \
+ (IsKindOf(&className::sm_class##className) \
+ ? (className *)(this) \
+ : (className *)0)
+
#define wxConstCast(obj, className) ((className *)(obj))
#ifdef __WXDEBUG__
#endif // Debug/!Debug
// Unfortunately Borland seems to need this include.
+#if wxUSE_STD_IOSTREAM && (defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT)
#ifdef __BORLANDC__
#if wxUSE_IOSTREAMH
#include <iostream.h>
#include <iostream>
#endif
#endif
+#endif
class WXDLLEXPORT wxObjectRefData;
#endif // Debug & memory tracing
#if wxUSE_STD_IOSTREAM && (defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT)
- virtual void Dump(ostream& str);
+ virtual void Dump(wxSTD ostream& str);
#endif
#if wxUSE_SERIAL