WinDBG/Exts/CodeAnalyzer/gdbplus/gdb-7.7/gdb/python/py-ref.c
/* Return frame number for stack, none for other  */
Return frame number for stack, none for other
Return frame number for stack none for other
static PyObject *
object_ref_get_frame (PyObject *self, void *closure)
{
	object_ref *obj_ref = (object_ref *) self;
	if (obj_ref->ref.storage_type == ENUM_STACK)
		return PyInt_FromLong (obj_ref->ref.where.stack.frame);
	else
	{
		Py_INCREF (Py_None);
		return Py_None;
	}
}
static PyObject * object_ref_get_frame ( PyObject * self , void * closure ) { object_ref * obj_ref = ( object_ref * ) self ; if ( obj_ref -> ref . storage_type == ENUM_STACK ) return PyInt_FromLong ( obj_ref -> ref . where . stack . frame ) ; else { Py_INCREF ( Py_None ) ; return Py_None ; } }
Return frame number for stack, none for other
Return frame number for stack none for other