2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 /*****************************************************************************
14 #include <proto/commodities.h>
16 AROS_LH1I(LONG
, CxObjError
,
20 AROS_LHA(CxObj
*, co
, A0
),
24 struct Library
*, CxBase
, 11, Commodities
)
28 Obtain the ackumulated error of commodity object 'co'.
32 co - the object the error of which to get
36 The ackumulated error of the object 'co'. See <libraries/commodities.h>
37 for the possible errors.
51 There seems to be some kind of RKRM error here. The RKRM says that
52 COERR_ISNULL is returned if 'co' is NULL. COERR_ISNULL is furthermore
53 defined as 1 in <libraries/commodities.h>. However, in the RESULTS part
54 is says "error - the accumulated error, or 0 if 'co' is NULL". As the
55 commodities.library I have (39.6 I believe) returns 0, I do the same
60 ******************************************************************************/
65 return (co
== NULL
) ? 0 : co
->co_Error
;