diff options
Diffstat (limited to 'src/core/func.h')
| -rw-r--r-- | src/core/func.h | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/func.h b/src/core/func.h index d72e583..7c5635f 100644 --- a/src/core/func.h +++ b/src/core/func.h @@ -58,6 +58,9 @@ public:  /* ---- Static functions for the Func registry -------------------- */ +	/// type definition +	typedef std::map<std::string, Func*> Registry; +  	/// add a function to the registry  	static Func *add(const char *name, FuncPtr functionptr, unsigned int flags=0); @@ -77,13 +80,15 @@ public:  	static void list();  	/// the function registry -	static std::map<std::string, Func*> registry; +	static inline Registry & registry() { return func_registry; }  private:  	std::string		func_name;  	std::string		func_info;  	unsigned int 		func_flags;  	void 			*func_ptr; + +	static Registry		func_registry;  };  }  | 
