MCPcopy Create free account
hub / github.com/SpartanJ/eepp / throw_error

Function throw_error

src/eepp/system/lua-str.cpp:56–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54// error handling, hm?? NB
55
56static int throw_error( const char* fmt, ... ) {
57 char buff[1024];
58 va_list ap;
59 va_start( ap, fmt );
60 vsnprintf( buff, sizeof( buff ), fmt, ap );
61 va_end( ap );
62 if ( !s_fail_fun ) {
63 fprintf( stderr, "%s\n", buff );
64 exit( 1 );
65 } else {
66 s_fail_fun( buff );
67 }
68 return 0;
69}
70
71static int check_capture( MatchState* ms, int l ) {
72 l -= '1';

Callers 7

check_captureFunction · 0.85
capture_to_closeFunction · 0.85
classendFunction · 0.85
matchbalanceFunction · 0.85
start_captureFunction · 0.85
matchFunction · 0.85
push_onecaptureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected