From e0f2912993cff06de625c87f06af3e872228148b Mon Sep 17 00:00:00 2001 From: PoliEcho Date: Mon, 14 Apr 2025 09:33:16 +0200 Subject: [PATCH] misc changes --- Makefile | 4 ++-- src/const.h | 7 +++++++ src/main.cpp | 4 +--- 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 src/const.h diff --git a/Makefile b/Makefile index 344f90f..607423f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Compiler and flags CPPC = g++ -CPPC_FLAGS = -std=c++23 -s -O3 -Wall -Wextra -Wno-write-strings -DEBUG_FLAGS = -ggdb -std=c++23 -Wall -Wextra -Wno-write-strings +CPPC_FLAGS = -std=c++23 -s -O3 -Wall -Wextra -Wno-write-strings -lncurses +DEBUG_FLAGS = -ggdb -std=c++23 -Wall -Wextra -Wno-write-strings -lncurses SRC_PATH := src diff --git a/src/const.h b/src/const.h new file mode 100644 index 0000000..119d144 --- /dev/null +++ b/src/const.h @@ -0,0 +1,7 @@ + +#ifndef NAME + +#define NAME "ParaDocs" +#define VERSION "0.0.1" + +#endif \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 452458f..385dffe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,11 +1,9 @@ #include "color.h" +#include "const.h" #include #include #include -#define NAME "ParaDocs" -#define VERSION "0.0.1" - void PrintHelp() { std::cout << RED R"( ____ ____ /\ _`\ /\ _`\