35 DebugLog(std::string_view name): fout(&name[0]) {}
37 void activate(std::string_view name) {
46 void out_impl(First
const &first)
53 template<
class First,
class Second,
class ...Args>
54 void out_impl(First
const &first, Second
const &second, Args &&...args)
58 out_impl(second, std::forward<Args>(args)...);
62 template<
class ...Args>
63 void out(Args &&...args)
66 out_impl(std::forward<Args>(args)...);
71 void close() {
if (fout) fout.close(); }
83 #define LOG(...) sgl::log.out(__VA_ARGS__); 84 #define SCOPELOGNAME(name) ScopeLog _scope_log_name_; 85 #define SCOPELOG ScopeLog _scope_log_; 89 #define SCOPELOGNAME(name) 94 static inline size_t r_general = 0;
96 ScopeLog(): r(r_general++) { LOG() LOG(
"******************************** R", r) LOG() }
97 ~
ScopeLog() { LOG() LOG(
"******************************** R", r) LOG() }
Definition: debuglog.h:93
Definition: debuglog.h:30
Definition: abstractgammasym.h:32