make entryPoint a header

This commit is contained in:
2025-03-29 15:37:27 -05:00
parent 0d61a369fc
commit db9b8cc924
8 changed files with 40 additions and 29 deletions

View File

@@ -5,4 +5,6 @@
#include "utils/GuiModule/GuiModule.h"
#include "utils/App/App.h"
#include "entryPoint.h"
#endif

9
include/entryPoint.h Normal file
View File

@@ -0,0 +1,9 @@
#ifdef APP_TYPE
int main(int argc, char* argv[]) {
APP_TYPE app;
app.handleArgs(argc, argv);
app.run();
}
#endif

17
include/pch.hpp Normal file
View File

@@ -0,0 +1,17 @@
#ifndef PCH_HPP
#define PCH_HPP
#include <iostream>
#include <cstring>
#include <list>
#include <array>
#include <vector>
#include <unordered_map>
#include <optional>
//#include <chrono>
//#include <thread>
#include <dlfcn.h>
#endif

View File

@@ -1,5 +1,5 @@
#ifndef GUIMODULE_H
#define GUIMODULE_H
#ifdef GUIMODULE
#undef GUIMODULE
#include "utils/Module/Module.h"
#include "utils/Window/Window.h"