diff --git a/test/DummyInclude.hpp b/test/DummyInclude.hpp deleted file mode 100644 index 30e1087..0000000 --- a/test/DummyInclude.hpp +++ /dev/null @@ -1 +0,0 @@ -// Only for gen testing. \ No newline at end of file diff --git a/test/Parsed/Array.Parsed.hpp b/test/Parsed/Array.Parsed.hpp index 941412a..b5abea1 100644 --- a/test/Parsed/Array.Parsed.hpp +++ b/test/Parsed/Array.Parsed.hpp @@ -1,6 +1,6 @@ #pragma once -#if gen_time +#if GEN_TIME #define GEN_FEATURE_PARSING #define GEN_DEFINE_LIBRARY_CODE_CONSTANTS #define GEN_ENFORCE_STRONG_CODE_TYPES diff --git a/test/Parsed/Buffer.Parsed.hpp b/test/Parsed/Buffer.Parsed.hpp index b28c6a8..0be2f80 100644 --- a/test/Parsed/Buffer.Parsed.hpp +++ b/test/Parsed/Buffer.Parsed.hpp @@ -1,6 +1,6 @@ #pragma once -#if gen_time +#if GEN_TIME #define GEN_FEATURE_PARSING #define GEN_DEFINE_LIBRARY_CODE_CONSTANTS #define GEN_ENFORCE_STRONG_CODE_TYPES @@ -203,4 +203,4 @@ u32 gen_buffer_file() return 0; } -#endif // gen_time +#endif // GEN_TIME diff --git a/test/Parsed/HashTable.Parsed.hpp b/test/Parsed/HashTable.Parsed.hpp index ec6a562..1b5575b 100644 --- a/test/Parsed/HashTable.Parsed.hpp +++ b/test/Parsed/HashTable.Parsed.hpp @@ -1,6 +1,6 @@ #pragma once -#if gen_time +#if GEN_TIME #define GEN_FEATURE_PARSING #define GEN_DEFINE_LIBRARY_CODE_CONSTANTS #define GEN_ENFORCE_STRONG_CODE_TYPES @@ -357,4 +357,4 @@ u32 gen_hashtable_file() return 0; } -#endif // gen_time +#endif // GEN_TIME diff --git a/test/Parsed/Ring.Parsed.hpp b/test/Parsed/Ring.Parsed.hpp index 9729fb7..51483ce 100644 --- a/test/Parsed/Ring.Parsed.hpp +++ b/test/Parsed/Ring.Parsed.hpp @@ -1,6 +1,6 @@ #pragma once -#if gen_time +#if GEN_TIME #define GEN_FEATURE_PARSING #define GEN_DEFINE_LIBRARY_CODE_CONSTANTS #define GEN_ENFORCE_STRONG_CODE_TYPES @@ -173,4 +173,4 @@ u32 gen_ring_file() return 0; } -#endif // gen_time +#endif // GEN_TIME diff --git a/test/Parsed/Sanity.Parsed.hpp b/test/Parsed/Sanity.Parsed.hpp index 083e9ac..c34860f 100644 --- a/test/Parsed/Sanity.Parsed.hpp +++ b/test/Parsed/Sanity.Parsed.hpp @@ -1,5 +1,5 @@ #pragma once -#ifdef gen_time +#ifdef GEN_TIME #define GEN_FEATURE_PARSING #define GEN_DEFINE_LIBRARY_CODE_CONSTANTS #define GEN_ENFORCE_STRONG_CODE_TYPES diff --git a/test/Readme.md b/test/Readme.md index 45ca237..bba40b4 100644 --- a/test/Readme.md +++ b/test/Readme.md @@ -2,10 +2,10 @@ The following tests focus on attempting to generate some math, containers, and the memory module of zpl. -Not all the files are written how I would practically use the librarry, the containers for example would +Not all the files are written how I would practically use the library, the containers for example would be better on in c++ as templates, since the templates they generate are trivial symbols to inspect or debug. -An exmaple of a non-trival generation is a container for elements with SOA or AOS policy for layout. +An example of a non-trivial generation is a container for elements with SOA or AOS policy for layout. (If a unified element syntax is desired) The test is divided between two major sets of tests: Parsed and Upfront. diff --git a/test/SOA.cpp b/test/SOA.cpp index bb9b992..7986af4 100644 --- a/test/SOA.cpp +++ b/test/SOA.cpp @@ -1,4 +1,4 @@ -#if gen_time +#if GEN_TIME #define GEN_FEATURE_PARSING #define GEN_DEFINE_LIBRARY_CODE_CONSTANTS #define GEN_ENFORCE_STRONG_CODE_TYPES diff --git a/test/Upfront/Array.Upfront.hpp b/test/Upfront/Array.Upfront.hpp index 279c113..422ab36 100644 --- a/test/Upfront/Array.Upfront.hpp +++ b/test/Upfront/Array.Upfront.hpp @@ -1,6 +1,6 @@ #pragma once -#if gen_time +#if GEN_TIME #include "gen.hpp" using namespace gen; diff --git a/test/Upfront/Buffer.Upfront.hpp b/test/Upfront/Buffer.Upfront.hpp index 7f8d5cb..1a78ded 100644 --- a/test/Upfront/Buffer.Upfront.hpp +++ b/test/Upfront/Buffer.Upfront.hpp @@ -1,6 +1,6 @@ #pragma once -#if gen_time +#if GEN_TIME #include "gen.hpp" using namespace gen; @@ -271,4 +271,4 @@ u32 gen_buffer_file() return 0; } -#endif // gen_time +#endif // GEN_TIME diff --git a/test/Upfront/HashTable.Upfront.hpp b/test/Upfront/HashTable.Upfront.hpp index e0ea189..af514ff 100644 --- a/test/Upfront/HashTable.Upfront.hpp +++ b/test/Upfront/HashTable.Upfront.hpp @@ -1,6 +1,6 @@ #pragma once -#if gen_time +#if GEN_TIME #include "gen.hpp" #include "Array.Upfront.hpp" @@ -483,4 +483,4 @@ u32 gen_hashtable_file() return 0; } -#endif // gen_time +#endif // GEN_TIME diff --git a/test/Upfront/Ring.Upfront.hpp b/test/Upfront/Ring.Upfront.hpp index 1fbd77d..e7446b8 100644 --- a/test/Upfront/Ring.Upfront.hpp +++ b/test/Upfront/Ring.Upfront.hpp @@ -1,6 +1,6 @@ #pragma once -#if gen_time +#if GEN_TIME #include "gen.hpp" #include "Buffer.Upfront.hpp" @@ -225,4 +225,4 @@ u32 gen_ring_file() return 0; } -#endif // gen_time +#endif // GEN_TIME diff --git a/test/Upfront/Sanity.Upfront.hpp b/test/Upfront/Sanity.Upfront.hpp index e5de5ae..8508b99 100644 --- a/test/Upfront/Sanity.Upfront.hpp +++ b/test/Upfront/Sanity.Upfront.hpp @@ -1,4 +1,4 @@ -#ifdef gen_time +#ifdef GEN_TIME #include "gen.hpp" using namespace gen; diff --git a/test/sanity.cpp b/test/sanity.cpp index e34ca80..1cc9ba5 100644 --- a/test/sanity.cpp +++ b/test/sanity.cpp @@ -1,6 +1,6 @@ // Testing to make sure backend of library is operating properly. -#ifdef gen_time +#ifdef GEN_TIME #define GEN_FEATURE_PARSING #define GEN_DEFINE_LIBRARY_CODE_CONSTANTS #define GEN_ENFORCE_STRONG_CODE_TYPES diff --git a/test/test.Upfront.cpp b/test/test.Upfront.cpp index 8701b76..340dc5d 100644 --- a/test/test.Upfront.cpp +++ b/test/test.Upfront.cpp @@ -1,4 +1,4 @@ -#ifdef gen_time +#ifdef GEN_TIME #define GEN_FEATURE_PARSING #define GEN_DEFINE_LIBRARY_CODE_CONSTANTS #define GEN_ENFORCE_STRONG_CODE_TYPES diff --git a/test/test.cpp b/test/test.cpp index f79938e..e1b1880 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -7,7 +7,7 @@ #include "sanity.cpp" #include "SOA.cpp" -#if gen_time +#if GEN_TIME int gen_main() { using namespace gen; @@ -23,7 +23,7 @@ int gen_main() // This only has to be done if symbol conflicts occur. -#ifndef gen_time +#ifndef GEN_TIME int main() { diff --git a/test/test.parsing.cpp b/test/test.parsing.cpp index 4c4a1d3..536e036 100644 --- a/test/test.parsing.cpp +++ b/test/test.parsing.cpp @@ -1,4 +1,4 @@ -#ifdef gen_time +#ifdef GEN_TIME #define GEN_FEATURE_PARSING #define GEN_DEFINE_LIBRARY_CODE_CONSTANTS #define GEN_ENFORCE_STRONG_CODE_TYPES @@ -9,7 +9,7 @@ #include "Parsed\HashTable.Parsed.hpp" #include "Parsed\Ring.Parsed.hpp" #include "Parsed\Sanity.Parsed.hpp" -#include "SOA.hpp" +#include "SOA.cpp" #include "gen.cpp" using namespace gen; diff --git a/test/upfront.hpp b/test/upfront.hpp index e150f23..28d02dc 100644 --- a/test/upfront.hpp +++ b/test/upfront.hpp @@ -1,4 +1,4 @@ -#ifdef gen_time +#ifdef GEN_TIME #define GEN_FEATURE_PARSING #define GEN_DEFINE_LIBRARY_CODE_CONSTANTS #define GEN_ENFORCE_STRONG_CODE_TYPES