Browse Source

base: fix some typos that prevented disabling asserts.

undefined
Sam Hocevar 10 years ago
parent
commit
8d99eb3715
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/lol/base/assert.h
  2. +2
    -2
      src/ticker.cpp

+ 1
- 1
src/lol/base/assert.h View File

@@ -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(...) \


+ 2
- 2
src/ticker.cpp View File

@@ -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;
}


Loading…
Cancel
Save