diff --git a/src/lol/base/assert.h b/src/lol/base/assert.h index 6dc0fa7f..22067fca 100644 --- a/src/lol/base/assert.h +++ b/src/lol/base/assert.h @@ -119,7 +119,7 @@ static inline void DebugAbort() #define LOL_ERROR_3(t, s, ...) \ lol::Log::Error("assertion at %s:%d: " s "\n", __FILE__, __LINE__, __VA_ARGS__) -#if FINAL_RELEASE +#if LOL_BUILD_RELEASE # define ASSERT(...) UNUSED(LOL_CALL(LOL_1ST, (__VA_ARGS__))) #else # define ASSERT(...) \ diff --git a/src/ticker.cpp b/src/ticker.cpp index b291cb4f..f82c076a 100644 --- a/src/ticker.cpp +++ b/src/ticker.cpp @@ -139,9 +139,9 @@ int Ticker::Unref(Entity *entity) { ASSERT(entity, "dereferencing null entity\n"); ASSERT(entity->m_ref > 0, "dereferencing unreferenced entity %s\n", - entity->GetName()) + entity->GetName()); ASSERT(!entity->m_autorelease, "dereferencing autoreleased entity %s\n", - entity->GetName()) + entity->GetName()); return --entity->m_ref; }