32#ifndef _SIR_CONSOLE_H_INCLUDED
33# define _SIR_CONSOLE_H_INCLUDED
35# include "sir/types.h"
36# include "sir/helpers.h"
39bool _sir_write_stdio(FILE* stream,
const char* message);
42bool _sir_write_stdout(
const char* message,
size_t len) {
44 return _sir_write_stdio(stdout, message);
48bool _sir_write_stderr(
const char* message,
size_t len) {
50 return _sir_write_stdio(stderr, message);
53extern HANDLE __sir_stdout;
54extern HANDLE __sir_stderr;
56void _sir_initialize_stdio(
void);
57bool _sir_write_stdio(HANDLE console,
const char* message,
size_t len);
60bool _sir_write_stdout(
const char* message,
size_t len) {
61 return _sir_write_stdio(__sir_stdout, message, len);
65bool _sir_write_stderr(
const char* message,
size_t len) {
66 return _sir_write_stdio(__sir_stderr, message, len);