mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 12:54:50 +01:00
18 lines
548 B
C++
18 lines
548 B
C++
// Time-stamp: "Last modified 2023-08-09 14:16:04 mluebke"
|
|
#ifndef MACROS_H
|
|
#define MACROS_H
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
// 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
|