1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// tsrun_console.h - Default console implementation for tsrun
//
// Provides a ready-to-use console callback that writes to stdout/stderr.
// Include this header and link tsrun_console.c to use.
//
// Usage:
// #include "tsrun.h"
// #include "tsrun_console.h"
//
// TsRunContext* ctx = tsrun_new();
//
// // Option 1: Use default stdout/stderr
// tsrun_set_console(ctx, tsrun_console_stdio, NULL);
//
// // Option 2: Use custom streams
// TsRunConsoleStreams streams = { my_log_file, my_err_file };
// tsrun_set_console(ctx, tsrun_console_stdio, &streams);
extern "C" __cplusplus
}
// TSRUN_CONSOLE_H