From 45beb5bb658aa78603eeefa5d144a2e224266b39 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 31 Jul 2022 15:51:54 +0200 Subject: [PATCH] changed EXIT_CODES type to enum I think it doesn't matter, but I have no idea :D --- include/flags.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/include/flags.h b/include/flags.h index 4cd857c..571a8db 100644 --- a/include/flags.h +++ b/include/flags.h @@ -2,11 +2,14 @@ #define WHY2_FLAGS_H //CONSTS -#define SUCCESS 0 //EXIT CODE FOR SUCCESSFUL RUN -#define INVALID_KEY 1 //EXIT VALUE FOR INVALID KEY -#define INVALID_TEXT 4 //EXIT VALUE FOR INVALID TEXT -#define DOWNLOAD_FAILED 2 //EXIT VALUE FOR versions.json DOWNLOAD FAILED -#define UPDATE_FAILED 3 //EXIT VALUE FOR UPDATE FAILED +const enum EXIT_CODES //exit codes you fucking idiot +{ + SUCCESS = 0, //EXIT CODE FOR SUCCESSFUL RUN + INVALID_KEY = 1, //EXIT VALUE FOR INVALID KEY + INVALID_TEXT = 4, //EXIT VALUE FOR INVALID TEXT + DOWNLOAD_FAILED = 2, //EXIT VALUE FOR versions.json DOWNLOAD FAILED + UPDATE_FAILED = 3 //EXIT VALUE FOR UPDATE FAILED +}; #define VERSION "v4.3.1" //VERSION OF CURRENT BUILD > DO NOT TOUCH THIS < #define VERSIONS_URL "https://raw.githubusercontent.com/ENGO150/WHY2/release/versions.json" //URL FOR GETTING versions.json