From cf61370df80de6dc659dbd9b803c973b300c1b4c Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 5 Feb 2008 00:09:22 +0000 Subject: don't use cvar --- src/core/func.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/core/func.h') 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 -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); } } -- cgit v1.2.3