X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fgui-listbox.cpp;h=b7232501843a2080c08f7ee2d834eba03cfb53ea;hb=09e9ed196aadab0f77e831c134fce8bdb58b772b;hp=ee82efface87ed52538933acc89f931c71fbfea9;hpb=fbe90f42f1eddac5a30089b905ad405d007104bc;p=guile-irrlicht.git diff --git a/src/gui-listbox.cpp b/src/gui-listbox.cpp index ee82eff..b723250 100644 --- a/src/gui-listbox.cpp +++ b/src/gui-listbox.cpp @@ -24,17 +24,16 @@ #include "gui-listbox.h" #include "gsubr.h" #include "wchar.h" - +#include "wrapped.h" using namespace irr; - SCM -gui_IGUIListBox_addItem (SCM gui_listbox, - SCM text, - SCM icon) +IGUIListBox_addItem (SCM gui_listbox, + SCM text, + SCM icon) { - gui::IGUIListBox* listbox = (gui::IGUIListBox*)scm_to_pointer (gui_listbox); + gui::IGUIListBox* listbox = (gui::IGUIListBox*)scm_to_irr_pointer (gui_listbox); u32 item_id; if (icon == SCM_UNDEFINED) { @@ -48,13 +47,8 @@ gui_IGUIListBox_addItem (SCM gui_listbox, return scm_from_uint32 (item_id); } - -extern "C" { - - void - init_gui_listbox (void) - { - DEFINE_GSUBR ("gui_IGUIListBox_addItem", 2, 1, 0, gui_IGUIListBox_addItem); - } - +void +init_gui_listbox (void) +{ + DEFINE_GSUBR ("IGUIListBox_addItem", 2, 1, 0, IGUIListBox_addItem); }