don't zero io_Actual on error, this field is automaticaly incremented as soon as...
[AROS.git] / compiler / alib / creategadget.c
blob3db4ba3f28940f413eaf449afd62e1981ef762a5
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Create a gadtools gadget
6 Lang: english
7 */
9 #define AROS_TAGRETURNTYPE struct Gadget *
11 #include "alib_intern.h"
13 extern struct Library * GadToolsBase;
15 /*****************************************************************************
17 NAME */
18 #include <intuition/intuition.h>
19 #include <utility/tagitem.h>
20 #include <libraries/gadtools.h>
21 #define NO_INLINE_STDARG /* turn off inline def */
22 #include <proto/gadtools.h>
24 struct Gadget * CreateGadget (
26 /* SYNOPSIS */
27 ULONG kind,
28 struct Gadget * previous,
29 struct NewGadget * ng,
30 Tag tag1,
31 ... )
33 /* FUNCTION
34 Varargs version of gadtools.library/CreateGadgetA().
36 INPUTS
38 RESULT
40 NOTES
42 EXAMPLE
44 BUGS
46 SEE ALSO
47 gadtools.library/CreateGadgetA()
49 INTERNALS
51 HISTORY
53 *****************************************************************************/
55 AROS_SLOWSTACKTAGS_PRE(tag1)
56 retval = CreateGadgetA (kind, previous, ng, AROS_SLOWSTACKTAGS_ARG(tag1));
57 AROS_SLOWSTACKTAGS_POST
58 } /* CreateGadget */