int iuppplotlua_open(lua_State * L) { iuplua_register(L, PPlot, "PPlot"); iuplua_register_cb(L, "EDIT_CB", (lua_CFunction)pplot_edit_cb, "pplot"); iuplua_register_cb(L, "DELETEEND_CB", (lua_CFunction)pplot_deleteend_cb, NULL); iuplua_register_cb(L, "PLOTMOTION_CB", (lua_CFunction)pplot_plotmotion_cb, NULL); iuplua_register_cb(L, "EDITBEGIN_CB", (lua_CFunction)pplot_editbegin_cb, NULL); iuplua_register_cb(L, "SELECT_CB", (lua_CFunction)pplot_select_cb, NULL); iuplua_register_cb(L, "POSTDRAW_CB", (lua_CFunction)pplot_postdraw_cb, NULL); iuplua_register_cb(L, "EDITEND_CB", (lua_CFunction)pplot_editend_cb, NULL); iuplua_register_cb(L, "SELECTBEGIN_CB", (lua_CFunction)pplot_selectbegin_cb, NULL); iuplua_register_cb(L, "SELECTEND_CB", (lua_CFunction)pplot_selectend_cb, NULL); iuplua_register_cb(L, "DELETE_CB", (lua_CFunction)pplot_delete_cb, NULL); iuplua_register_cb(L, "DELETEBEGIN_CB", (lua_CFunction)pplot_deletebegin_cb, NULL); iuplua_register_cb(L, "PREDRAW_CB", (lua_CFunction)pplot_predraw_cb, NULL); iuplua_register_cb(L, "PLOTBUTTON_CB", (lua_CFunction)pplot_plotbutton_cb, NULL); iuplua_pplotfuncs_open(L); #ifdef IUPLUA_USELOH #include "pplot.loh" #else #ifdef IUPLUA_USELH #include "pplot.lh" #else iuplua_dofile(L, "pplot.lua"); #endif #endif return 0; }
int iuppplotlua_open(lua_State * L) { iuplua_register(L, PPlot, "PPlot"); iuplua_register_cb(L, "EDIT_CB", (lua_CFunction)pplot_edit_cb, "pplot"); iuplua_register_cb(L, "DELETEEND_CB", (lua_CFunction)pplot_deleteend_cb, NULL); iuplua_register_cb(L, "SELECTBEGIN_CB", (lua_CFunction)pplot_selectbegin_cb, NULL); iuplua_register_cb(L, "POSTDRAW_CB", (lua_CFunction)pplot_postdraw_cb, NULL); iuplua_register_cb(L, "DELETE_CB", (lua_CFunction)pplot_delete_cb, NULL); iuplua_register_cb(L, "PREDRAW_CB", (lua_CFunction)pplot_predraw_cb, NULL); iuplua_register_cb(L, "SELECTEND_CB", (lua_CFunction)pplot_selectend_cb, NULL); iuplua_register_cb(L, "SELECT_CB", (lua_CFunction)pplot_select_cb, NULL); iuplua_register_cb(L, "DELETEBEGIN_CB", (lua_CFunction)pplot_deletebegin_cb, NULL); iuplua_register_cb(L, "EDITBEGIN_CB", (lua_CFunction)pplot_editbegin_cb, NULL); iuplua_register_cb(L, "EDITEND_CB", (lua_CFunction)pplot_editend_cb, NULL); iuplua_pplotfuncs_open(L); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/pplot_be64.loh" #else #include "loh/pplot_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/pplot_le64w.loh" #else #include "loh/pplot_le64.loh" #endif #else #include "loh/pplot.loh" #endif #endif #else iuplua_dofile(L, "pplot.lua"); #endif return 0; }