mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
preludes,builder,cgen: add support for VTEST_RUNNER=tap and -test-runner tap (#12523)
This commit is contained in:
@@ -173,8 +173,25 @@ pub fn eprint(s string) {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn flush_stdout() {
|
||||
$if freestanding {
|
||||
not_implemented := 'flush_stdout is not implemented\n'
|
||||
bare_eprint(not_implemented.str, u64(not_implemented.len))
|
||||
} $else {
|
||||
C.fflush(C.stdout)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn flush_stderr() {
|
||||
$if freestanding {
|
||||
not_implemented := 'flush_stderr is not implemented\n'
|
||||
bare_eprint(not_implemented.str, u64(not_implemented.len))
|
||||
} $else {
|
||||
C.fflush(C.stderr)
|
||||
}
|
||||
}
|
||||
|
||||
// print prints a message to stdout. Unlike `println` stdout is not automatically flushed.
|
||||
// A call to `flush()` will flush the output buffer to stdout.
|
||||
[manualfree]
|
||||
pub fn print(s string) {
|
||||
$if android {
|
||||
|
||||
Reference in New Issue
Block a user