mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 04:48:23 +01:00
MDL: added include/poet/Macros.hpp
This commit is contained in:
parent
4181e189a1
commit
b08697f9d4
14
include/poet/Macros.hpp
Normal file
14
include/poet/Macros.hpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
// Time-stamp: "Last modified 2023-08-09 12:10:57 delucia"
|
||||||
|
#ifndef MACROS_H
|
||||||
|
#define MACROS_H
|
||||||
|
|
||||||
|
// Prepend "msg" with name of calling function
|
||||||
|
#define MSG(msg) std::cout << "CPP: " << __func__ << ": " << std::string(msg) << std::endl;
|
||||||
|
|
||||||
|
#define MSG_NOENDL(msg) std::cout << "CPP: " << __func__ << ": " << std::string(msg);
|
||||||
|
|
||||||
|
#define ERRMSG(msg) std::cerr << "CPP_ERROR: " << __func__ << ": " << std::string(msg) << std::endl;
|
||||||
|
|
||||||
|
#define BOOL_PRINT(bool) std::string(bool ? "ON" : "OFF")
|
||||||
|
|
||||||
|
#endif // MACROS_H
|
||||||
Loading…
x
Reference in New Issue
Block a user