Split off command-line options parsing from the main function
This commit is contained in:
parent
7cd9faefe0
commit
4dd410a2af
5 changed files with 196 additions and 130 deletions
11
macros.h
11
macros.h
|
|
@ -7,3 +7,14 @@
|
|||
|
||||
#define XSTR(s) STR(s)
|
||||
#define STR(s) #s
|
||||
|
||||
#define VERSION 0.3.1
|
||||
|
||||
#ifndef GITHASH
|
||||
#define FULLVERSION VERSION
|
||||
#else
|
||||
#define FULLVERSION VERSION~git.GITHASH
|
||||
#endif
|
||||
|
||||
#define VERSIONSTRING \
|
||||
"AnnaConnect version "XSTR(FULLVERSION)", Copyright (C) Anna Snoeijs\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue