parent
f57dfd119e
commit
a303d12b2c
@ -0,0 +1,11 @@
|
||||
#include "nulllogger.hh"
|
||||
|
||||
class NullBuffer : public std::streambuf
|
||||
{
|
||||
public:
|
||||
virtual int sync() { return 0; }
|
||||
};
|
||||
|
||||
NullBuffer nullbuffer;
|
||||
|
||||
std::ostream nulllogger(&nullbuffer);
|
@ -0,0 +1,8 @@
|
||||
#ifndef NULL_LOGGER_HH
|
||||
#define NULL_LOGGER_HH
|
||||
|
||||
#include <ostream>
|
||||
|
||||
extern std::ostream nulllogger;
|
||||
|
||||
#endif
|
Loading…
Reference in new issue