| Line |
Branch |
Exec |
Source |
| 1 |
|
|
#include <cassert> |
| 2 |
|
|
#include <cstdarg> |
| 3 |
|
|
|
| 4 |
|
|
#include "std-includes.h" |
| 5 |
|
|
#include "errors.h" |
| 6 |
|
|
#include "interface-shared.h" |
| 7 |
|
|
|
| 8 |
|
473 |
void error_impl(const char* error_id, const char* fmt_string, int whichpass, ...) { |
| 9 |
|
473 |
va_list args; va_start(args, whichpass); |
| 10 |
|
241 |
char error_buffer[1024]; |
| 11 |
2/2
✓ Branch 0 taken 232 times.
✓ Branch 1 taken 241 times.
|
473 |
vsnprintf(error_buffer, sizeof(error_buffer), fmt_string, args); |
| 12 |
|
|
|
| 13 |
1/2
✓ Branch 0 taken 473 times.
✗ Branch 1 not taken.
|
473 |
error_interface(error_id, whichpass, error_buffer); |
| 14 |
|
473 |
} |
| 15 |
|
|
|