mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Use ASSERT (custom, better macro) instead of the C macro assert()
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#define _REFERENCE_H
|
||||
|
||||
#include "Dynamic/LinkedList.h"
|
||||
#include <assert.h>
|
||||
#include "Errors.h" // for ASSERT
|
||||
|
||||
//=====================================================
|
||||
|
||||
@@ -45,7 +45,7 @@ template <class TO, class FROM> class Reference : public LinkedListElement
|
||||
// Create new link
|
||||
void link(TO* toObj, FROM* fromObj)
|
||||
{
|
||||
assert(fromObj); // fromObj MUST not be NULL
|
||||
ASSERT(fromObj); // fromObj MUST not be NULL
|
||||
if (isValid())
|
||||
unlink();
|
||||
if (toObj != NULL)
|
||||
|
||||
Reference in New Issue
Block a user