From c6960306484a771d580572b810247265e8d25088 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 2 Mar 2020 21:03:25 +0100 Subject: [PATCH] Add header for unit tests. --- TODO.md | 4 ---- {legacy/lolunit => include/lol/base}/lolunit.h | 14 ++------------ 2 files changed, 2 insertions(+), 16 deletions(-) rename {legacy/lolunit => include/lol/base}/lolunit.h (97%) diff --git a/TODO.md b/TODO.md index b07aec23..fd82d5f9 100644 --- a/TODO.md +++ b/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 diff --git a/legacy/lolunit/lolunit.h b/include/lol/base/lolunit.h similarity index 97% rename from legacy/lolunit/lolunit.h rename to include/lol/base/lolunit.h index 357d11b7..d44865f5 100644 --- a/legacy/lolunit/lolunit.h +++ b/include/lol/base/lolunit.h @@ -1,7 +1,7 @@ // // Lol Engine — Unit test implementation // -// Copyright © 2010—2016 Sam Hocevar +// Copyright © 2010—2020 Sam Hocevar // // 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 #include #include #include -#if defined _XBOX -# include -# undef near /* Fuck Microsoft */ -# undef far /* Fuck Microsoft again */ -#elif defined _WIN32 -# define WIN32_LEAN_AND_MEAN -# include -# undef near /* Fuck Microsoft */ -# undef far /* Fuck Microsoft again */ -#endif namespace lol {