X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fgui-listbox.cpp;h=b7232501843a2080c08f7ee2d834eba03cfb53ea;hb=c59d2be798005a3684d75c3f561568ad2cdac9c7;hp=08b3b2230c3b981d44bbe11430b4f367968f85e7;hpb=98052b04792129db97286fdd77ef3b0de8912286;p=guile-irrlicht.git diff --git a/src/gui-listbox.cpp b/src/gui-listbox.cpp index 08b3b22..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 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 @@ IGUIListBox_addItem (SCM gui_listbox, return scm_from_uint32 (item_id); } - -extern "C" { - - void - init_gui_listbox (void) - { - DEFINE_GSUBR ("IGUIListBox_addItem", 2, 1, 0, IGUIListBox_addItem); - } - +void +init_gui_listbox (void) +{ + DEFINE_GSUBR ("IGUIListBox_addItem", 2, 1, 0, IGUIListBox_addItem); }