diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-04 01:17:44 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-04 01:17:44 +0000 |
commit | 09fb43f3d36847977ac202c10c5a11f34af03a43 (patch) | |
tree | 45f4537347e9f8b3195cea00356963e9879a08fa /src/core/func.cc | |
parent | 840f9b8678f607aecc15d47bc77248c4ac8b8574 (diff) |
astyle
Diffstat (limited to 'src/core/func.cc')
-rw-r--r-- | src/core/func.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/func.cc b/src/core/func.cc index c4f14db..b89e556 100644 --- a/src/core/func.cc +++ b/src/core/func.cc @@ -1,13 +1,14 @@ /* core/func.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 "core/func.h" #include <map> -namespace core { +namespace core +{ std::map<std::string, Func> functionmap; @@ -15,7 +16,7 @@ void func_register(const char * functionname, Func functionptr) { functionmap[std::string(functionname)] = functionptr; } - + void func_unregister(std:: string functionname) { functionmap.erase(std::string(functionname)); @@ -26,4 +27,4 @@ Func func_find(std::string functionname) return functionmap[functionname]; } -} +} // namespace core |