From bff7c33aa909d00428f81e6b5f89b236343fc13b Mon Sep 17 00:00:00 2001 From: truebrain Date: Tue, 29 Nov 2011 22:23:33 +0000 Subject: (svn r23350) -Add: support different ScriptTypes in the helper functions for GetClassName (Rubidium) --- src/script/squirrel_class.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/script/squirrel_class.hpp') diff --git a/src/script/squirrel_class.hpp b/src/script/squirrel_class.hpp index a08d8b3a6..73117b60a 100644 --- a/src/script/squirrel_class.hpp +++ b/src/script/squirrel_class.hpp @@ -18,7 +18,7 @@ * The template to define classes in Squirrel. It takes care of the creation * and calling of such classes, to minimize the API layer. */ -template +template class DefSQClass { private: const char *classname; @@ -35,7 +35,7 @@ public: void DefSQMethod(Squirrel *engine, Func function_proc, const char *function_name) { using namespace SQConvert; - engine->AddMethod(function_name, DefSQNonStaticCallback, 0, NULL, &function_proc, sizeof(function_proc)); + engine->AddMethod(function_name, DefSQNonStaticCallback, 0, NULL, &function_proc, sizeof(function_proc)); } /** @@ -45,7 +45,7 @@ public: void DefSQAdvancedMethod(Squirrel *engine, Func function_proc, const char *function_name) { using namespace SQConvert; - engine->AddMethod(function_name, DefSQAdvancedNonStaticCallback, 0, NULL, &function_proc, sizeof(function_proc)); + engine->AddMethod(function_name, DefSQAdvancedNonStaticCallback, 0, NULL, &function_proc, sizeof(function_proc)); } /** @@ -58,7 +58,7 @@ public: void DefSQMethod(Squirrel *engine, Func function_proc, const char *function_name, int nparam, const char *params) { using namespace SQConvert; - engine->AddMethod(function_name, DefSQNonStaticCallback, nparam, params, &function_proc, sizeof(function_proc)); + engine->AddMethod(function_name, DefSQNonStaticCallback, nparam, params, &function_proc, sizeof(function_proc)); } /** -- cgit v1.2.3-54-g00ecf