浏览代码

base: fix some typos that prevented disabling asserts.

undefined
Sam Hocevar 10 年前
父节点
当前提交
8d99eb3715
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      src/lol/base/assert.h
  2. +2
    -2
      src/ticker.cpp

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


+ 2
- 2
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;
}


正在加载...
取消
保存