changed SKIP_CHECK to variable & created getter and setter
This commit is contained in:
parent
0c1a0a84b6
commit
c5dca2c782
@ -1,16 +1,22 @@
|
||||
#ifndef WHY2_FLAGS_H
|
||||
#define WHY2_FLAGS_H
|
||||
|
||||
//CONSTS
|
||||
#define KEY_LENGTH 50
|
||||
#define ENCRYPTION_SEPARATOR '.'
|
||||
#define ENCRYPTION_SEPARATOR_STRING "."
|
||||
|
||||
#define INVALID_KEY 1
|
||||
|
||||
#define VERSION "v3.0"
|
||||
#define VERSION "v2.2"
|
||||
#define VERSIONS_URL "https://raw.githubusercontent.com/ENGO150/WHY2/master/versions.json"
|
||||
#define VERSIONS_NAME "versions.json"
|
||||
|
||||
#define SKIP_CHECK 1
|
||||
//VARIABLES
|
||||
static int skipCheck = 0;
|
||||
|
||||
//FUNCTIONS
|
||||
int getSkipCheck();
|
||||
void setSkipCheck(int skipCheckNew);
|
||||
|
||||
#endif
|
||||
|
11
src/flags.c
Normal file
11
src/flags.c
Normal file
@ -0,0 +1,11 @@
|
||||
#include <why2/flags.h>
|
||||
|
||||
int getSkipCheck()
|
||||
{
|
||||
return skipCheck;
|
||||
}
|
||||
|
||||
void setSkipCheck(int skipCheckNew)
|
||||
{
|
||||
skipCheck = skipCheckNew;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user