16 #include "config_express.h"
19 #ifndef WIN32_LEAN_AND_MEAN
20 #define WIN32_LEAN_AND_MEAN 1
33 _dcast_verify(
TypeHandle want_handle,
size_t want_size,
35 if (get_verify_dcast()) {
41 #if defined(_DEBUG) && defined(_WIN32)
43 express_cat->warning()
44 <<
"Attempt to cast invalid pointer to "
45 << want_handle <<
"\n";
51 <<
"Attempt to cast pointer from " << ptr->get_type()
52 <<
" to " << want_handle <<
"\n";
53 if (ptr->get_type() == TypedObject::get_class_type()) {
54 express_cat->error(
false)
55 <<
"Perhaps pointer was inadvertently deleted?\n";
bool is_of_type(TypeHandle handle) const
Returns true if the current object is or derives from the indicated type.
This is an abstract class that all classes which use TypeHandle, and also provide virtual functions t...
TypeHandle is the identifier used to differentiate C++ class types.