From 5330a3d9b90c4427516ec622964f9716b3760a54 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Wed, 24 Dec 2014 00:49:28 +0200 Subject: [PATCH] Eluna Clean part of old code off --- ElunaTemplate.h | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/ElunaTemplate.h b/ElunaTemplate.h index e213949..791fbd2 100644 --- a/ElunaTemplate.h +++ b/ElunaTemplate.h @@ -132,7 +132,7 @@ public: // that will only be needed on lua side and will not be managed by TC/mangos/ static void Register(Eluna* E, const char* name, bool gc = false) { - ASSERT(!tname || name); + ASSERT(!tname && name); tname = name; manageMemory = gc; @@ -441,40 +441,5 @@ public: static int LessOrEqual(lua_State* L) { return CompareError(L); } static int Call(lua_State* L) { return luaL_error(L, "attempt to call a %s value", tname); } }; -// -//template const char* ElunaTemplate::tname; -//template bool ElunaTemplate::manageMemory; - -#if (!defined(TBC) && !defined(CLASSIC)) -template<> int ElunaTemplate::CollectGarbage(lua_State* L); -#endif - -template<> int ElunaTemplate::Add(lua_State* L); -template<> int ElunaTemplate::Substract(lua_State* L); -template<> int ElunaTemplate::Multiply(lua_State* L); -template<> int ElunaTemplate::Divide(lua_State* L); -template<> int ElunaTemplate::Mod(lua_State* L); -template<> int ElunaTemplate::Pow(lua_State* L); -// template<> int ElunaTemplate::UnaryMinus(lua_State* L); -template<> int ElunaTemplate::Concat(lua_State* L); -template<> int ElunaTemplate::Length(lua_State* L); -template<> int ElunaTemplate::Equal(lua_State* L); -template<> int ElunaTemplate::Less(lua_State* L); -template<> int ElunaTemplate::LessOrEqual(lua_State* L); -template<> int ElunaTemplate::Call(lua_State* L); - -template<> int ElunaTemplate::Add(lua_State* L); -template<> int ElunaTemplate::Substract(lua_State* L); -template<> int ElunaTemplate::Multiply(lua_State* L); -template<> int ElunaTemplate::Divide(lua_State* L); -template<> int ElunaTemplate::Mod(lua_State* L); -template<> int ElunaTemplate::Pow(lua_State* L); -template<> int ElunaTemplate::UnaryMinus(lua_State* L); -template<> int ElunaTemplate::Concat(lua_State* L); -template<> int ElunaTemplate::Length(lua_State* L); -template<> int ElunaTemplate::Equal(lua_State* L); -template<> int ElunaTemplate::Less(lua_State* L); -template<> int ElunaTemplate::LessOrEqual(lua_State* L); -template<> int ElunaTemplate::Call(lua_State* L); #endif