瀏覽代碼

Add <lol/base/lolunit.h> header for unit tests.

wip/core-clipp
Sam Hocevar 4 年之前
父節點
當前提交
c696030648
共有 2 個檔案被更改,包括 2 行新增16 行删除
  1. +0
    -4
      TODO.md
  2. +2
    -12
      include/lol/base/lolunit.h

+ 0
- 4
TODO.md 查看文件

@@ -7,10 +7,6 @@
src/lol/math/noise/*


## other headers to keep

tools/lolunit/lolunit.h

## headers we could clean up and keep

src/lol/algorithm/aabb_tree.h


legacy/lolunit/lolunit.h → include/lol/base/lolunit.h 查看文件

@@ -1,7 +1,7 @@
//
// Lol Engine — Unit test implementation
//
// Copyright © 2010—2016 Sam Hocevar <sam@hocevar.net>
// Copyright © 2010—2020 Sam Hocevar <sam@hocevar.net>
//
// Lol Engine is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it
@@ -14,23 +14,13 @@

//
// The Unit test framework
// -----------------------
// ———————————————————————
//

#include <iostream>
#include <iomanip>
#include <sstream>
#include <cstdio>
#if defined _XBOX
# include <xtl.h>
# undef near /* Fuck Microsoft */
# undef far /* Fuck Microsoft again */
#elif defined _WIN32
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# undef near /* Fuck Microsoft */
# undef far /* Fuck Microsoft again */
#endif

namespace lol
{

Loading…
取消
儲存