mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 20:05:56 +08:00
Added ostream version of warn and info
This commit is contained in:
parent
0436b83a22
commit
bce4f19111
@ -59,6 +59,14 @@ public:
|
||||
return std::cerr;
|
||||
}
|
||||
|
||||
static std::ostream& warn(std::string topic) {
|
||||
std::cerr << topic << " WARN" << ": ";
|
||||
return std::cerr;
|
||||
}
|
||||
static std::ostream& info(std::string topic) {
|
||||
std::cerr << topic << " INFO" << ": ";
|
||||
return std::cerr;
|
||||
}
|
||||
};
|
||||
|
||||
/// Utility debug function to transform a std::vector of anything that
|
||||
|
Loading…
x
Reference in New Issue
Block a user