Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / popupmenu / staticlib / pm_insertmenuitem.c
blob680f6c56ebf6e32eead23e08f178fff17f4523a8
1 /*
2 Copyright © 2010, The AROS Development Team.
3 All rights reserved.
5 $Id$
6 */
8 #include <utility/tagitem.h>
9 #include <proto/alib.h>
11 /*****************************************************************************
13 NAME */
14 #define NO_INLINE_STDARG /* turn off inline def */
15 #include <proto/popupmenu.h>
16 extern struct PopupMenuBase * PopupMenuBase;
18 LONG PM_InsertMenuItem(
20 /* SYNOPSIS */
21 struct PopupMenu *menu,
22 Tag tag1,
23 ...)
25 /* FUNCTION
27 INPUTS
29 RESULT
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
39 INTERNALS
41 HISTORY
43 *****************************************************************************/
45 AROS_SLOWSTACKTAGS_PRE(tag1)
47 retval = PM_InsertMenuItemA(menu, AROS_SLOWSTACKTAGS_ARG(tag1));
49 AROS_SLOWSTACKTAGS_POST
50 } /* PM_InsertMenuItem */