]> git.tdb.fi Git - gldbg.git/blob - source/tool.cpp
Add framework necessary to support more modular tools
[gldbg.git] / source / tool.cpp
1 /* $Id$
2
3 This file is part of gldbg
4 Copyright © 2010  Mikko Rasa, Mikkosoft Productions
5 Distributed under the GPL
6 */
7
8 #include "tool.h"
9
10 using namespace std;
11
12 list<Tool::Factory *> &Tool::get_factories()
13 {
14         static list<Tool::Factory *> factories;
15         return factories;
16 }
17
18
19 Tool::Factory::Factory()
20 {
21         get_factories().push_back(this);
22 }