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

Function argument_error

v2/engine/function.c:2913–2930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2911}
2912
2913static void argument_error( char const * message, FUNCTION * procedure,
2914 FRAME * frame, OBJECT * arg )
2915{
2916 extern void print_source_line( FRAME * );
2917 LOL * actual = frame->args;
2918 backtrace_line( frame->prev );
2919 printf( "*** argument error\n* rule %s ( ", frame->rulename );
2920 argument_list_print( procedure->formal_arguments,
2921 procedure->num_formal_arguments );
2922 printf( " )\n* called with: ( " );
2923 lol_print( actual );
2924 printf( " )\n* %s %s\n", message, arg ? object_str ( arg ) : "" );
2925 function_location( procedure, &frame->file, &frame->line );
2926 print_source_line( frame );
2927 printf( "see definition of rule '%s' being called\n", frame->rulename );
2928 backtrace( frame->prev );
2929 exit( 1 );
2930}
2931
2932static void type_check_range( OBJECT * type_name, LISTITER iter, LISTITER end,
2933 FRAME * caller, FUNCTION * called, OBJECT * arg_name )

Callers 4

type_check_rangeFunction · 0.85
argument_list_checkFunction · 0.85
argument_list_pushFunction · 0.85
argument_list_to_pythonFunction · 0.85

Calls 7

backtrace_lineFunction · 0.85
argument_list_printFunction · 0.85
lol_printFunction · 0.85
object_strFunction · 0.85
function_locationFunction · 0.85
print_source_lineFunction · 0.85
backtraceFunction · 0.70

Tested by

no test coverage detected