Core/Misc: Use ASSERT (custom, better macro) instead of the C macro assert()

This commit is contained in:
Nay
2013-01-04 20:49:49 +00:00
parent ff48ea8a52
commit e5945402ad
2 changed files with 6 additions and 5 deletions

View File

@@ -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)