aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
blob: 91e605eee23c5160d24bbc3e8baa4fb68159358a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <QApplication>
#include <QMainWindow>
#include <lua.hpp>

#include "MainWindow.hpp"

int main(int argc, char *argv[]) {
  // QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL);
  QApplication app(argc, argv);

  MainWindow mainWindow;
  mainWindow.setWindowTitle("web-browser");
  mainWindow.show();

  return app.exec();
}

// auto L = luaL_newstate();
//
// luaL_openlibs(L);
//
// auto status = luaL_dostring(L, "print(500 + 10 * 3)");
// if (status) {
//   fprintf(stderr, "Couldn't load file: %s\n", lua_tostring(L, -1));
//   exit(1);
// }
// lua_close(L);
// exit(0);