* introduce globalWarningStream()

This commit is contained in:
Garux
2018-03-15 01:18:16 +03:00
parent 5bf0dd5243
commit 45a38ae48e
6 changed files with 29 additions and 0 deletions

View File

@@ -253,12 +253,26 @@ std::size_t write( const char* buffer, std::size_t length ){
}
};
class SysPrintWarningStream : public TextOutputStream
{
public:
std::size_t write( const char* buffer, std::size_t length ){
return Sys_Print( SYS_WRN, buffer, length );
}
};
SysPrintOutputStream g_outputStream;
TextOutputStream& getSysPrintOutputStream(){
return g_outputStream;
}
SysPrintWarningStream g_warningStream;
TextOutputStream& getSysPrintWarningStream(){
return g_warningStream;
}
SysPrintErrorStream g_errorStream;
TextOutputStream& getSysPrintErrorStream(){