diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2014-01-02 13:54:34 -0800 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2014-01-02 13:54:34 -0800 |
commit | 2cb567edc01a251bd6e3216113313b0c94bced95 (patch) | |
tree | cd795fbf99bab32b19ba986c995c4e7c350090e6 /src | |
parent | f43da413f0fe1ef4686fcbfa05a97af9a211d217 (diff) |
Adding the ability for Printer to override globals.
Diffstat (limited to 'src')
-rw-r--r-- | src/Printer.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Printer.cc b/src/Printer.cc index a7fee9f..7eb02d8 100644 --- a/src/Printer.cc +++ b/src/Printer.cc @@ -28,6 +28,10 @@ void Balau::Printer::setLocal() { localPrinter.set(this); } +void Balau::Printer::setGlobal() { + localPrinter.setGlobal(this); +} + Balau::Printer * Balau::Printer::getPrinter() { return localPrinter.get(); } void Balau::Printer::_log(uint32_t level, const char * fmt, va_list ap) { |