28 #include "galois/config.h"
46 template <
typename... Args>
48 std::ostringstream os;
54 template <
typename... Args>
56 std::ostringstream os;
62 template <
typename... Args>
64 std::ostringstream os;
71 template <
typename... Args>
72 void gDebug(Args&&... GALOIS_USED_ONLY_IN_DEBUG(args)) {
74 std::ostringstream os;
81 template <
typename... Args>
83 std::ostringstream os;
90 #define GALOIS_SYS_DIE(...) \
92 galois::gError(__FILE__, ":", __LINE__, ": ", strerror(errno), ": ", \
96 #define GALOIS_DIE(...) \
98 galois::gError(__FILE__, ":", __LINE__, ": ", ##__VA_ARGS__); \
101 #define GALOIS_ASSERT(cond, ...) \
106 galois::gError(__FILE__, ":", __LINE__, ": assertion failed: ", #cond, \
107 " ", ##__VA_ARGS__); \
112 template <
unsigned ENABLE>
114 template <
typename... Args>
115 static void print(
const Args&... args) {
122 template <
typename... Args>
123 inline static void print(
const Args&...) {}
static void print(const Args &...)
Definition: gIO.h:123
void gInfo(Args &&...args)
Prints an info string from a sequence of things.
Definition: gIO.h:55
void gWarnStr(const std::string &)
Prints a warning string (for easy parsing)
Definition: gIO.cpp:93
void gDebug(Args &&...GALOIS_USED_ONLY_IN_DEBUG(args))
Prints a debug string from a sequence of things; prints nothing if NDEBUG is defined.
Definition: gIO.h:72
void gInfoStr(const std::string &)
Prints an info string (for easy parsing)
Definition: gIO.cpp:89
void gError(Args &&...args)
Prints error message.
Definition: gIO.h:82
void gErrorStr(const std::string &)
Prints an error string (for easy parsing)
Definition: gIO.cpp:97
void gDebugStr(const std::string &)
Prints a debug string (for easy parsing)
Definition: gIO.cpp:49
void gPrint(Args &&...args)
Prints a sequence of things.
Definition: gIO.h:47
void gFlush()
Definition: gIO.cpp:101
void gPrintStr(const std::string &)
Prints a string.
Definition: gIO.cpp:85
static void print(const Args &...args)
Definition: gIO.h:115
void gWarn(Args &&...args)
Prints a warning string from a sequence of things.
Definition: gIO.h:63