Don't call ReadArgs() if started from WB.
[tangerine.git] / compiler / alib / creategadget.c
blobfac8b1ac75f106bec64de444773eff1ec755a890
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
48 INTERNALS
50 HISTORY
52 *****************************************************************************/
54 AROS_SLOWSTACKTAGS_PRE(tag1)
55 retval = CreateGadgetA (kind, previous, ng, AROS_SLOWSTACKTAGS_ARG(tag1));
56 AROS_SLOWSTACKTAGS_POST
57 } /* CreateGadget */