changed EXIT_CODES type to enum

I think it doesn't matter, but I have no idea :D
This commit is contained in:
Václav Šmejkal 2022-07-31 15:51:54 +02:00
parent c020bfc602
commit 45beb5bb65
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -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