#include "BLua.h" #include "iup.h" #include "iuplua.h" #include "iupcontrols.h" #include "iupluacontrols.h" #include "iup_pplot.h" #include "iuplua_pplot.h" #include #include #include #include #include "iupluaim.h" #include #include #include #include #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else #define WEAK #endif static void _init_plugin(Lua * L) { static bool done = false; if (done) return; done = true; L->wrap_open(iuplua_open); L->wrap_open(iupkey_open); L->wrap_open(iupcontrolslua_open); L->wrap_open(cdlua_open); L->wrap_open(cdluaiup_open); L->wrap_open(iupimlua_open); L->wrap_open(imlua_open); L->wrap_open(imlua_open_process); L->wrap_open(cdluaim_open); } extern "C" { WEAK void init_plugin(Lua * L) { _init_plugin(L); } void luaiup_init(Lua * L) { _init_plugin(L); } }