完成 Error定义和ErrorLog. 以及一些相关的东西
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#include <Core/CoreIO.hpp>
|
||||
#include <Core/CoreInfos.hpp>
|
||||
|
||||
namespace Fig::CoreIO
|
||||
{
|
||||
#if defined(_WIN32) || defined(__APPLE__) || defined (__linux__) || defined (__unix__)
|
||||
std::ostream &GetStdOut()
|
||||
{
|
||||
static std::ostream &out = std::cout;
|
||||
return out;
|
||||
}
|
||||
std::ostream &GetStdErr()
|
||||
{
|
||||
static std::ostream &err = std::cerr;
|
||||
return err;
|
||||
}
|
||||
std::ostream &GetStdLog()
|
||||
{
|
||||
static std::ostream &log = std::clog;
|
||||
return log;
|
||||
}
|
||||
std::istream &GetStdCin()
|
||||
{
|
||||
static std::istream &cin = std::cin;
|
||||
return cin;
|
||||
}
|
||||
#else
|
||||
// link
|
||||
#endif
|
||||
};
|
||||
Reference in New Issue
Block a user