refactor from macro into function
parent
079509811d
commit
8a3115b095
13
version.hh
13
version.hh
|
@ -1,8 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#define _showVersion(program,g_gitHash) { \
|
||||
cout <<"galmon tools (" <<program <<") " <<g_gitHash <<endl; \
|
||||
cout <<"built date " <<__DATE__ <<endl; \
|
||||
cout <<"(C) AHU Holding BV - bert@hubertnet.nl - https://berthub.eu/" <<endl; \
|
||||
cout <<"https://galmon.eu/ - https://github.com/ahupowerdns/galmon" <<endl; \
|
||||
cout <<"License GPLv3: GNU GPL version 3 https://gnu.org/licenses/gpl.html" <<endl; }
|
||||
void showVersion(char *pname, const char *hash) {
|
||||
std::cout <<"galmon tools (" <<pname <<") " <<hash <<std::endl;
|
||||
std::cout <<"built date " <<__DATE__ <<std::endl;
|
||||
std::cout <<"(C) AHU Holding BV - bert@hubertnet.nl - https://berthub.eu/" <<std::endl;
|
||||
std::cout <<"https://galmon.eu/ - https://github.com/ahupowerdns/galmon" <<std::endl;
|
||||
std::cout <<"License GPLv3: GNU GPL version 3 https://gnu.org/licenses/gpl.html" <<std::endl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue