From 373b9867ec37710f033dee1842bd98fbf416f6a1 Mon Sep 17 00:00:00 2001 From: Ivan Mogilko Date: Tue, 10 Sep 2019 00:54:36 +0300 Subject: [PATCH] Engine: fixed AGS_RUN_TESTS check --- Engine/main/main.cpp | 2 +- Engine/test/test_all.cpp | 2 +- Engine/test/test_all.h | 2 +- Engine/test/test_file.cpp | 2 +- Engine/test/test_gfx.cpp | 2 +- Engine/test/test_inifile.cpp | 2 +- Engine/test/test_math.cpp | 2 +- Engine/test/test_memory.cpp | 2 +- Engine/test/test_sprintf.cpp | 2 +- Engine/test/test_string.cpp | 2 +- Engine/test/test_version.cpp | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Engine/main/main.cpp b/Engine/main/main.cpp index d7c874c8989..b89e06017a5 100644 --- a/Engine/main/main.cpp +++ b/Engine/main/main.cpp @@ -400,7 +400,7 @@ const char *set_allegro_error(const char *format, ...) int ags_entry_point(int argc, char *argv[]) { -#if AGS_RUN_TESTS +#ifdef AGS_RUN_TESTS Test_DoAllTests(); #endif main_init(argc, argv); diff --git a/Engine/test/test_all.cpp b/Engine/test/test_all.cpp index a8d424f7d58..c42946353ac 100644 --- a/Engine/test/test_all.cpp +++ b/Engine/test/test_all.cpp @@ -13,7 +13,7 @@ //============================================================================= #include "core/platform.h" -#if AGS_RUN_TESTS +#ifdef AGS_RUN_TESTS #include "test/test_all.h" diff --git a/Engine/test/test_all.h b/Engine/test/test_all.h index bfbca14c219..0ecdc3f45a4 100644 --- a/Engine/test/test_all.h +++ b/Engine/test/test_all.h @@ -13,7 +13,7 @@ //============================================================================= #include "core/platform.h" -#if AGS_RUN_TESTS +#ifdef AGS_RUN_TESTS void Test_DoAllTests(); // Math tests diff --git a/Engine/test/test_file.cpp b/Engine/test/test_file.cpp index 4d20e8550f3..0a800d457b8 100644 --- a/Engine/test/test_file.cpp +++ b/Engine/test/test_file.cpp @@ -13,7 +13,7 @@ //============================================================================= #include "core/platform.h" -#if AGS_RUN_TESTS +#ifdef AGS_RUN_TESTS #include #include "debug/assert.h" diff --git a/Engine/test/test_gfx.cpp b/Engine/test/test_gfx.cpp index ba55e2eea3f..c3323440cd7 100644 --- a/Engine/test/test_gfx.cpp +++ b/Engine/test/test_gfx.cpp @@ -13,7 +13,7 @@ //============================================================================= #include "core/platform.h" -#if AGS_RUN_TESTS +#ifdef AGS_RUN_TESTS #include #include "gfx/gfx_def.h" diff --git a/Engine/test/test_inifile.cpp b/Engine/test/test_inifile.cpp index 7fb8d816665..d2d982c1a9b 100644 --- a/Engine/test/test_inifile.cpp +++ b/Engine/test/test_inifile.cpp @@ -13,7 +13,7 @@ //============================================================================= #include "core/platform.h" -#if AGS_RUN_TESTS +#ifdef AGS_RUN_TESTS #include #include diff --git a/Engine/test/test_math.cpp b/Engine/test/test_math.cpp index bce2e2ce1a1..f820cd6419d 100644 --- a/Engine/test/test_math.cpp +++ b/Engine/test/test_math.cpp @@ -13,7 +13,7 @@ //============================================================================= #include "core/platform.h" -#if AGS_RUN_TESTS +#ifdef AGS_RUN_TESTS #include "debug/assert.h" #include "util/scaling.h" diff --git a/Engine/test/test_memory.cpp b/Engine/test/test_memory.cpp index 0f0f9f29bd6..2598cdc3d37 100644 --- a/Engine/test/test_memory.cpp +++ b/Engine/test/test_memory.cpp @@ -13,7 +13,7 @@ //============================================================================= #include "core/platform.h" -#if AGS_RUN_TESTS +#ifdef AGS_RUN_TESTS #include "util/memory.h" #include "debug/assert.h" diff --git a/Engine/test/test_sprintf.cpp b/Engine/test/test_sprintf.cpp index 111c7f4f2aa..3132efd443d 100644 --- a/Engine/test/test_sprintf.cpp +++ b/Engine/test/test_sprintf.cpp @@ -13,7 +13,7 @@ //============================================================================= #include "core/platform.h" -#if AGS_RUN_TESTS +#ifdef AGS_RUN_TESTS #include #include "ac/game_version.h" diff --git a/Engine/test/test_string.cpp b/Engine/test/test_string.cpp index 22ac8f6a728..46537b4e767 100644 --- a/Engine/test/test_string.cpp +++ b/Engine/test/test_string.cpp @@ -13,7 +13,7 @@ //============================================================================= #include "core/platform.h" -#if AGS_RUN_TESTS +#ifdef AGS_RUN_TESTS #include #include diff --git a/Engine/test/test_version.cpp b/Engine/test/test_version.cpp index a84543afb9c..3a2a0f310c4 100644 --- a/Engine/test/test_version.cpp +++ b/Engine/test/test_version.cpp @@ -13,7 +13,7 @@ //============================================================================= #include "core/platform.h" -#if AGS_RUN_TESTS +#ifdef AGS_RUN_TESTS #include #include "debug/assert.h"