X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgui-listbox.cpp;h=e53ba49d0cb5139fdab0c04b766c585421cd6f22;hb=6bcbb2cefb0e69afae9b1de828b85f506b1bef19;hp=ee82efface87ed52538933acc89f931c71fbfea9;hpb=fbe90f42f1eddac5a30089b905ad405d007104bc;p=guile-irrlicht.git diff --git a/src/gui-listbox.cpp b/src/gui-listbox.cpp index ee82eff..e53ba49 100644 --- a/src/gui-listbox.cpp +++ b/src/gui-listbox.cpp @@ -25,14 +25,12 @@ #include "gsubr.h" #include "wchar.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); u32 item_id; @@ -48,13 +46,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); }