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 OOP_OCLASS(obj
)->ClassNode
.ln_Name
));
60 if (obj
== NULL
) return;
62 OOP_DoMethod(obj
, (OOP_Msg
)&mid
);
64 ReturnVoid("OOP_DisposeObject");
67 } /* OOP_DisposeObject */