AZEROTHCORE compatibility (#271)

* Done Compatible AZEROTHCORE.

* Fix TC build

* Try fix whitespace (trailing and tabs2spaces)

* Remove undefs and TC_LOG defines

* Revert indentation change

* Indentation and style change

* Add more possible SQL types to query

* change bg hooks OnBGEnd parameter type.
This commit is contained in:
ayase
2018-06-06 23:42:46 +08:00
committed by Rochet2
parent 2cedb8c5af
commit 9b5499db9c
31 changed files with 869 additions and 510 deletions

View File

@@ -28,7 +28,7 @@
// Some dummy includes containing BOOST_VERSION:
// ObjectAccessor.h Config.h Log.h
#ifndef MANGOS
#if !defined MANGOS && !defined AZEROTHCORE
#define USING_BOOST
#endif
@@ -66,7 +66,7 @@ void Eluna::Initialize()
LOCK_ELUNA;
ASSERT(!IsInitialized());
#ifdef TRINITY
#if defined TRINITY || AZEROTHCORE
// For instance data the data column needs to be able to hold more than 255 characters (tinytext)
// so we change it to TEXT automatically on startup
CharacterDatabase.DirectExecute("ALTER TABLE `instance` CHANGE COLUMN `data` `data` TEXT NOT NULL");
@@ -519,7 +519,11 @@ void Eluna::RunScripts()
void Eluna::InvalidateObjects()
{
++callstackid;
#ifdef AZEROTHCORE
ASSERT(callstackid && "Callstackid overflow");
#else
ASSERT(callstackid, "Callstackid overflow");
#endif
}
void Eluna::Report(lua_State* _L)