浏览代码

debug: use std::abort() instead of a custom idiocy.

legacy
Sam Hocevar sam 13 年前
父节点
当前提交
8da2f504a8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/lol/debug.h

+ 2
- 2
src/lol/debug.h 查看文件

@@ -16,14 +16,14 @@
#if !defined __LOL_DEBUG_H__
#define __LOL_DEBUG_H__

#include "entity.h"
#include <cstdlib>

namespace lol
{

static inline void Abort()
{
*(int *)0 = 0xdead;
std::abort();
}

} /* namespace lol */


正在加载...
取消
保存