WinDBG/Exts/CodeAnalyzer/gdbplus/gdb-7.7/gdb/python/py-ref.c
/* Return module name for global, none for other  */
Return module name for global, none for other
Return module name for global none for other
static PyObject *
object_ref_get_module_name (PyObject *self, void *closure)
{
	object_ref *obj_ref = (object_ref *) self;
	if (obj_ref->ref.storage_type == ENUM_MODULE_TEXT || obj_ref->ref.storage_type == ENUM_MODULE_DATA)
		return PyString_FromString (obj_ref->ref.where.module.name);
	else
	{
		Py_INCREF (Py_None);
		return Py_None;
	}
}
static PyObject * object_ref_get_module_name ( PyObject * self , void * closure ) { object_ref * obj_ref = ( object_ref * ) self ; if ( obj_ref -> ref . storage_type == ENUM_MODULE_TEXT || obj_ref -> ref . storage_type == ENUM_MODULE_DATA ) return PyString_FromString ( obj_ref -> ref . where . module . name ) ; else { Py_INCREF ( Py_None ) ; return Py_None ; } }
Return module name for global, none for other
Return module name for global none for other