#include "gui-toolbar.h"
#include "wchar.h"
-
using namespace irr;
-
SCM
-irr_gui_IGUIToolBar_addButton (SCM gui_toolbar,
- SCM id,
- SCM text,
- SCM tooltiptext,
- SCM img,
- SCM pressedimg,
- SCM is_push_button,
- SCM use_alpha_channel)
+IGUIToolBar_addButton (SCM gui_toolbar,
+ SCM id,
+ SCM text,
+ SCM tooltiptext,
+ SCM img,
+ SCM pressedimg,
+ SCM is_push_button,
+ SCM use_alpha_channel)
{
gui::IGUIToolBar* toolbar = (gui::IGUIToolBar*) scm_to_pointer (gui_toolbar);
gui::IGUIButton* button =
return scm_from_pointer ((void*) button, NULL);
}
-
-extern "C" {
-
- void
- init_gui_toolbar (void)
- {
- DEFINE_GSUBR ("irr_gui_IGUIToolBar_addButton", 8, 0, 0, irr_gui_IGUIToolBar_addButton);
- }
-
+void
+init_gui_toolbar (void)
+{
+ DEFINE_GSUBR ("IGUIToolBar_addButton", 8, 0, 0, IGUIToolBar_addButton);
}