From 2cb567edc01a251bd6e3216113313b0c94bced95 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 2 Jan 2014 13:54:34 -0800 Subject: Adding the ability for Printer to override globals. --- src/Printer.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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) { -- cgit v1.2.3