Check for SYS/GL during library init. Reason is that
[AROS.git] / rom / oop / releaseattrbases.c
blobdbf82ff1e09ee9bd60a780370df89802bc580b62
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: OOP function OOP_ReleaseAttrBases
6 Lang: english
7 */
8 #include <proto/exec.h>
9 #include <exec/memory.h>
10 #include <aros/libcall.h>
11 #include <aros/debug.h>
13 #include "intern.h"
14 #include "hash.h"
15 /*****************************************************************************
17 NAME */
18 #include <oop/oop.h>
19 #include <proto/oop.h>
21 AROS_LH1(VOID, OOP_ReleaseAttrBases,
23 /* SYNOPSIS */
24 AROS_LHA(const struct OOP_ABDescr *, abd, A0),
26 /* LOCATION */
27 struct Library *, OOPBase, 19, OOP)
29 /* FUNCTION
31 INPUTS
33 RESULT
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 HISTORY
47 ******************************************************************************/
49 AROS_LIBFUNC_INIT
52 for (; abd->interfaceID; abd ++)
54 if ( *abd->attrBase != 0 )
56 OOP_ReleaseAttrBase(abd->interfaceID);
57 *abd->attrBase = 0;
62 AROS_LIBFUNC_EXIT
64 } /* OOP_ReleaseAttrBases */