Skip to content

Commit beb21dd

Browse files
committed
Change TRACE macro to also output newline, if anything
1 parent a6d56b9 commit beb21dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libAtomVM/trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#ifndef TRACE
2525
#ifdef ENABLE_TRACE
26-
#define TRACE printf
26+
#define TRACE(...) do { printf(__VA_ARGS__); printf("\n"); } while(0)
2727
#define DEBUG_FAIL_NULL(expr) assert((expr) != NULL)
2828
#else
2929
#define TRACE(...)

0 commit comments

Comments
 (0)