Refactor Test gen_time to GEN_TIME

This commit is contained in:
Edward R. Gonzalez 2023-07-19 00:13:12 -04:00
parent 231ae5f5d6
commit 4d2f6a6315
18 changed files with 26 additions and 27 deletions

View File

@ -1 +0,0 @@
// Only for gen testing.

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -1,6 +1,6 @@
#pragma once
#if gen_time
#if GEN_TIME
#include "gen.hpp"
using namespace gen;

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
#ifdef gen_time
#ifdef GEN_TIME
#include "gen.hpp"
using namespace gen;

View File

@ -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

View File

@ -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

View File

@ -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()
{

View File

@ -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;

View File

@ -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