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-02-05 00:09:22 +0000
committerStijn Buys <ingar@osirion.org>2008-02-05 00:09:22 +0000
commitcf61370df80de6dc659dbd9b803c973b300c1b4c (patch)
tree7eba1f644a96a3269a63f447d3ce9676b854819b /src/core/func.h
parentad340b52a0a4e86edd5b54b01d74aac731a6a812 (diff)
don't use cvar
Diffstat (limited to 'src/core/func.h')
-rw-r--r--src/core/func.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/core/func.h b/src/core/func.h
index b3d446f..1af69c0 100644
--- a/src/core/func.h
+++ b/src/core/func.h
@@ -1,7 +1,7 @@
/*
core/funct.h
- 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
*/
#ifndef __INCLUDED_CORE_FUNC_H__
@@ -9,25 +9,25 @@
#include <sstream>
-namespace core {
+namespace core
+{
/// function pointer type
typedef void (* Func)(std::stringstream &args);
/// the function registry
-namespace func
-{
- /// add a function to the registry
- void add(const char *functionname, Func functionptr);
-
- /// remove a function from the registry
- void remove(const char *functionname);
- void remove(const std::string &functionname);
-
- /// find a fuction pointer
- /** Returns 0 if the function pointer could not be found
- */
- Func find(const std::string &functionname);
+namespace func {
+/// add a function to the registry
+void add(const char *functionname, Func functionptr);
+
+/// remove a function from the registry
+void remove(const char *functionname);
+void remove(const std::string &functionname);
+
+/// find a fuction pointer
+/** Returns 0 if the function pointer could not be found
+ */
+Func find(const std::string &functionname);
}
}