aboutsummaryrefslogtreecommitdiff
path: root/src/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/trace.h')
-rw-r--r--src/trace.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/trace.h b/src/trace.h
index 7a1f368..82399c2 100644
--- a/src/trace.h
+++ b/src/trace.h
@@ -45,6 +45,7 @@ namespace Bu
45 looper( v1 ); 45 looper( v1 );
46 fwrite( s, (ptrdiff_t)n-(ptrdiff_t)s, 1, stdout ); 46 fwrite( s, (ptrdiff_t)n-(ptrdiff_t)s, 1, stdout );
47 fwrite( "\n", 1, 1, stdout ); 47 fwrite( "\n", 1, 1, stdout );
48 fflush( stdout );
48 } 49 }
49 50
50 template<typename t1, typename t2> void __tracer( const char *pf, 51 template<typename t1, typename t2> void __tracer( const char *pf,
@@ -57,6 +58,7 @@ namespace Bu
57 looper( v2 ); 58 looper( v2 );
58 fwrite( s, (ptrdiff_t)n-(ptrdiff_t)s, 1, stdout ); 59 fwrite( s, (ptrdiff_t)n-(ptrdiff_t)s, 1, stdout );
59 fwrite( "\n", 1, 1, stdout ); 60 fwrite( "\n", 1, 1, stdout );
61 fflush( stdout );
60 } 62 }
61 63
62 template<typename t1, typename t2, typename t3> 64 template<typename t1, typename t2, typename t3>
@@ -70,6 +72,7 @@ namespace Bu
70 looper( v3 ); 72 looper( v3 );
71 fwrite( s, (ptrdiff_t)n-(ptrdiff_t)s, 1, stdout ); 73 fwrite( s, (ptrdiff_t)n-(ptrdiff_t)s, 1, stdout );
72 fwrite( "\n", 1, 1, stdout ); 74 fwrite( "\n", 1, 1, stdout );
75 fflush( stdout );
73 } 76 }
74 77
75 template<typename t1, typename t2, typename t3, typename t4> 78 template<typename t1, typename t2, typename t3, typename t4>
@@ -84,6 +87,7 @@ namespace Bu
84 looper( v4 ); 87 looper( v4 );
85 fwrite( s, (ptrdiff_t)n-(ptrdiff_t)s, 1, stdout ); 88 fwrite( s, (ptrdiff_t)n-(ptrdiff_t)s, 1, stdout );
86 fwrite( "\n", 1, 1, stdout ); 89 fwrite( "\n", 1, 1, stdout );
90 fflush( stdout );
87 } 91 }
88 92
89 template<typename t1, typename t2, typename t3, typename t4, typename t5> 93 template<typename t1, typename t2, typename t3, typename t4, typename t5>
@@ -99,6 +103,7 @@ namespace Bu
99 looper( v5 ); 103 looper( v5 );
100 fwrite( s, (ptrdiff_t)n-(ptrdiff_t)s, 1, stdout ); 104 fwrite( s, (ptrdiff_t)n-(ptrdiff_t)s, 1, stdout );
101 fwrite( "\n", 1, 1, stdout ); 105 fwrite( "\n", 1, 1, stdout );
106 fflush( stdout );
102 } 107 }
103 108
104 template<typename t1, typename t2, typename t3, typename t4, typename t5, 109 template<typename t1, typename t2, typename t3, typename t4, typename t5,
@@ -117,6 +122,7 @@ namespace Bu
117 looper( v6 ); 122 looper( v6 );
118 fwrite( s, (ptrdiff_t)n-(ptrdiff_t)s, 1, stdout ); 123 fwrite( s, (ptrdiff_t)n-(ptrdiff_t)s, 1, stdout );
119 fwrite( "\n", 1, 1, stdout ); 124 fwrite( "\n", 1, 1, stdout );
125 fflush( stdout );
120 } 126 }
121 127
122 template<typename t1, typename t2, typename t3, typename t4, typename t5, 128 template<typename t1, typename t2, typename t3, typename t4, typename t5,
@@ -136,6 +142,7 @@ namespace Bu
136 looper( v7 ); 142 looper( v7 );
137 fwrite( s, (ptrdiff_t)n-(ptrdiff_t)s, 1, stdout ); 143 fwrite( s, (ptrdiff_t)n-(ptrdiff_t)s, 1, stdout );
138 fwrite( "\n", 1, 1, stdout ); 144 fwrite( "\n", 1, 1, stdout );
145 fflush( stdout );
139 } 146 }
140#undef looper 147#undef looper
141 148