Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-01-30 17:34:35 +0000
committerStijn Buys <ingar@osirion.org>2008-01-30 17:34:35 +0000
commit69f7ffa70863bef2be4cae08c466b5d97a627277 (patch)
tree9945e1c5cb29e10afda66af3274c3ef87886225a /src/common/console.cc
parenta94049b1a43f83d750b9b5dee031c19a6b1fafb0 (diff)
accomodate the new modules
Diffstat (limited to 'src/common/console.cc')
-rw-r--r--src/common/console.cc24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/common/console.cc b/src/common/console.cc
index 7641865..e4fd215 100644
--- a/src/common/console.cc
+++ b/src/common/console.cc
@@ -1,14 +1,28 @@
/*
common/console.cc
- This file is part of the Osirion project and is distributed under
- the terms of the GNU General Public License version 2
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2
*/
-#include "console.h"
+#include "common/console.h"
+
+// TODO enforce singleton
namespace common {
-
- Console *Console::instance = 0;
+
+Console *Console::console_instance = 0;
+
+Console::Console() {
+ console_instance = this;
+}
+
+Console::~Console() {
+ console_instance = 0;
+}
+
+Console *Console::instance() {
+ return console_instance;
+}
} // namespace common