Skip to content

Commit c42135b

Browse files
committed
Fix debug macro not printing newline at the end
1 parent 8a9c0bb commit c42135b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leetcode/parser.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void print_impl(ostream &os, const T &val, bool write_newline) {
124124
#define DBG_10(x, ...) DBG_VAL(x), DBG_9(__VA_ARGS__)
125125

126126
// supports up to 10 arguments debugging at one time
127-
#define dbg(...) CONCAT(DBG_, NUM_ARGS(__VA_ARGS__))(__VA_ARGS__)
127+
#define dbg(...) CONCAT(DBG_, NUM_ARGS(__VA_ARGS__))(__VA_ARGS__), cerr << endl;
128128

129129
template <typename T> T parse(istream &is) {
130130
T ans;

0 commit comments

Comments
 (0)