2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Create a new OOP object
8 #include <exec/lists.h>
9 #include <proto/exec.h>
11 #define MD(x) ((struct metadata *)x)
12 #include <aros/debug.h>
14 /*****************************************************************************
17 #include <proto/oop.h>
19 AROS_LH1(VOID
, OOP_DisposeObject
,
22 AROS_LHA(OOP_Object
*, obj
, A0
),
25 struct Library
*, OOPBase
, 10, OOP
)
28 Delete an object that was previously allocated with OOP_NewObject().
31 obj - pointer to object to dispose.
48 29-10-95 digulla automatically created from
49 intuition_lib.fd and clib/intuition_protos.h
51 *****************************************************************************/
55 ULONG mid
= OOP_GetMethodID(IID_Root
, moRoot_Dispose
);
57 EnterFunc(bug("OOP_DisposeObject(classID=%s)\n",
58 OCLASS(obj
)->ClassNode
.ln_Name
));
60 if (obj
== NULL
) return;
64 MD(OOP_OCLASS(obj
))->objectcount
--;
67 OOP_DoMethod(obj
, (OOP_Msg
)&mid
);
70 ReturnVoid("OOP_DisposeObject");
73 } /* OOP_DisposeObject */