WinDBG/Exts/CodeAnalyzer/gdbplus/gdb-7.7/gdb/python/py-ref.c
/* Return gdb.Type for heap, none for other  */
Return gdb.Type for heap, none for other
Return gdb . Type for heap none for other
static PyObject *
object_ref_get_type (PyObject *self, void *closure)
{
	object_ref *obj_ref = (object_ref *) self;
	struct type* type = NULL;
	if (obj_ref->ref.storage_type == ENUM_HEAP)
		type = get_heap_object_type(&obj_ref->ref);
	if (type)
		return type_to_type_object(type);
	else
	{
		Py_INCREF (Py_None);
		return Py_None;
	}
}
static PyObject * object_ref_get_type ( PyObject * self , void * closure ) { object_ref * obj_ref = ( object_ref * ) self ; struct type * type = NULL ; if ( obj_ref -> ref . storage_type == ENUM_HEAP ) type = get_heap_object_type ( & obj_ref -> ref ) ; if ( type ) return type_to_type_object ( type ) ; else { Py_INCREF ( Py_None ) ; return Py_None ; } }
Return gdb.Type for heap, none for other
Return gdb . Type for heap none for other