extern "C" int luaopen_mimas_core(lua_State *L) { luaopen_mimas_Action(L); luaopen_mimas_Application(L); luaopen_mimas_Brush(L); luaopen_mimas_Button(L); luaopen_mimas_Callback(L); luaopen_mimas_CheckBox(L); luaopen_mimas_Color(L); luaopen_mimas_Cursor(L); luaopen_mimas_DataSource(L); luaopen_mimas_FileObserver(L); luaopen_mimas_GLWidget(L); luaopen_mimas_GroupBox(L); luaopen_mimas_HBoxLayout(L); luaopen_mimas_Label(L); luaopen_mimas_LegacyGLWidget(L); luaopen_mimas_LineEdit(L); luaopen_mimas_ListView(L); luaopen_mimas_MainWindow(L); luaopen_mimas_Menu(L); luaopen_mimas_MenuBar(L); luaopen_mimas_Painter(L); luaopen_mimas_Path(L); luaopen_mimas_Pen(L); luaopen_mimas_SocketNotifier(L); luaopen_mimas_TableView(L); luaopen_mimas_TabWidget(L); luaopen_mimas_Timer(L); luaopen_mimas_VBoxLayout(L); luaopen_mimas_Widget(L); // Create the table which will contain all the constants lua_getfield(L, LUA_GLOBALSINDEX, "mimas"); if (lua_isnil(L, -1)) { // no global table called mimas lua_pop(L, 1); lua_newtable(L); // <lib> lua_pushvalue(L, -1); // <lib> <lib> // _G.mimas = <lib> lua_setglobal(L, "mimas"); // <lib> } // <lib> // register global constants dub_register_const(L, mimas_const); luaL_register(L, NULL, mimas_functions); // <lib> lua_pop(L, 1); return 0; }
extern "C" int luaopen_b2_Manifold(lua_State *L) { // Create the metatable which will contain all the member methods luaL_newmetatable(L, "b2.Manifold"); // <mt> // register class constants dub_register_const(L, b2Manifold_const); // register member methods luaL_register(L, NULL, b2Manifold_member_methods); // save meta-table in b2 dub_register(L, "b2", "Manifold", "Manifold"); // <mt> lua_pop(L, 1); return 0; }
extern "C" int luaopen_ofFile(lua_State *L) { // Create the metatable which will contain all the member methods luaL_newmetatable(L, "ofFile"); // <mt> // register class constants dub_register_const(L, ofFile_const); // register member methods luaL_register(L, NULL, ofFile_member_methods); // save meta-table in _G dub_register(L, "_G", "ofFile", "ofFile"); // <mt> lua_pop(L, 1); return 0; }
extern "C" int luaopen_mimas_GLWidget(lua_State *L) { // Create the metatable which will contain all the member methods luaL_newmetatable(L, "mimas.GLWidget"); // <mt> // register class constants dub_register_const(L, GLWidget_const); // register member methods luaL_register(L, NULL, GLWidget_member_methods); // save meta-table in mimas dub_register(L, "mimas", "GLWidget_core", "GLWidget"); // <mt> lua_pop(L, 1); return 0; }