MCPcopy Create free account
hub / github.com/boostorg/build / debug_compile

Function debug_compile

v2/engine/compile.c:207–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 */
206
207static void debug_compile( int which, char const * s, FRAME * frame )
208{
209 static int level = 0;
210 static char indent[ 36 ] = ">>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|";
211
212 if ( which >= 0 )
213 {
214 int i;
215
216 print_source_line( frame );
217
218 i = ( level + 1 ) * 2;
219 while ( i > 35 )
220 {
221 fputs( indent, stdout );
222 i -= 35;
223 }
224
225 printf( "%*.*s ", i, i, indent );
226 }
227
228 if ( s )
229 printf( "%s ", s );
230
231 level += which;
232}

Callers 1

evaluate_ruleFunction · 0.85

Calls 1

print_source_lineFunction · 0.85

Tested by

no test coverage detected