refactor from macro into function

pull/92/head
Leif Sawyer 2020-01-22 13:45:06 -09:00
parent 079509811d
commit 8a3115b095
1 changed files with 7 additions and 6 deletions

View File

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