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

Function get_source_line

v2/engine/builtins.c:1239–1258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1237 */
1238
1239static void get_source_line( FRAME * frame, char const * * file, int * line )
1240{
1241 if ( frame->file )
1242 {
1243 char const * f = object_str( frame->file );
1244 int l = frame->line;
1245 if ( !strcmp( f, "+" ) )
1246 {
1247 f = "jambase.c";
1248 l += 3;
1249 }
1250 *file = f;
1251 *line = l;
1252 }
1253 else
1254 {
1255 *file = "(builtin)";
1256 *line = -1;
1257 }
1258}
1259
1260
1261void print_source_line( FRAME * frame )

Callers 4

print_source_lineFunction · 0.85
builtin_backtraceFunction · 0.85
bjam_backtraceFunction · 0.85

Calls 1

object_strFunction · 0.85

Tested by

no test coverage detected