mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 15:54:45 -08:00
Refactor Test gen_time to GEN_TIME
This commit is contained in:
parent
231ae5f5d6
commit
4d2f6a6315
@ -1 +0,0 @@
|
|||||||
// Only for gen testing.
|
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if gen_time
|
#if GEN_TIME
|
||||||
#define GEN_FEATURE_PARSING
|
#define GEN_FEATURE_PARSING
|
||||||
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
||||||
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if gen_time
|
#if GEN_TIME
|
||||||
#define GEN_FEATURE_PARSING
|
#define GEN_FEATURE_PARSING
|
||||||
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
||||||
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
||||||
@ -203,4 +203,4 @@ u32 gen_buffer_file()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // gen_time
|
#endif // GEN_TIME
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if gen_time
|
#if GEN_TIME
|
||||||
#define GEN_FEATURE_PARSING
|
#define GEN_FEATURE_PARSING
|
||||||
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
||||||
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
||||||
@ -357,4 +357,4 @@ u32 gen_hashtable_file()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // gen_time
|
#endif // GEN_TIME
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if gen_time
|
#if GEN_TIME
|
||||||
#define GEN_FEATURE_PARSING
|
#define GEN_FEATURE_PARSING
|
||||||
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
||||||
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
||||||
@ -173,4 +173,4 @@ u32 gen_ring_file()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // gen_time
|
#endif // GEN_TIME
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#ifdef gen_time
|
#ifdef GEN_TIME
|
||||||
#define GEN_FEATURE_PARSING
|
#define GEN_FEATURE_PARSING
|
||||||
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
||||||
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
The following tests focus on attempting to generate some math, containers, and the memory module of zpl.
|
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.
|
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)
|
(If a unified element syntax is desired)
|
||||||
|
|
||||||
The test is divided between two major sets of tests: Parsed and Upfront.
|
The test is divided between two major sets of tests: Parsed and Upfront.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#if gen_time
|
#if GEN_TIME
|
||||||
#define GEN_FEATURE_PARSING
|
#define GEN_FEATURE_PARSING
|
||||||
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
||||||
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if gen_time
|
#if GEN_TIME
|
||||||
#include "gen.hpp"
|
#include "gen.hpp"
|
||||||
|
|
||||||
using namespace gen;
|
using namespace gen;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if gen_time
|
#if GEN_TIME
|
||||||
#include "gen.hpp"
|
#include "gen.hpp"
|
||||||
|
|
||||||
using namespace gen;
|
using namespace gen;
|
||||||
@ -271,4 +271,4 @@ u32 gen_buffer_file()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // gen_time
|
#endif // GEN_TIME
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if gen_time
|
#if GEN_TIME
|
||||||
#include "gen.hpp"
|
#include "gen.hpp"
|
||||||
#include "Array.Upfront.hpp"
|
#include "Array.Upfront.hpp"
|
||||||
|
|
||||||
@ -483,4 +483,4 @@ u32 gen_hashtable_file()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // gen_time
|
#endif // GEN_TIME
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if gen_time
|
#if GEN_TIME
|
||||||
#include "gen.hpp"
|
#include "gen.hpp"
|
||||||
#include "Buffer.Upfront.hpp"
|
#include "Buffer.Upfront.hpp"
|
||||||
|
|
||||||
@ -225,4 +225,4 @@ u32 gen_ring_file()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // gen_time
|
#endif // GEN_TIME
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#ifdef gen_time
|
#ifdef GEN_TIME
|
||||||
#include "gen.hpp"
|
#include "gen.hpp"
|
||||||
|
|
||||||
using namespace gen;
|
using namespace gen;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Testing to make sure backend of library is operating properly.
|
// Testing to make sure backend of library is operating properly.
|
||||||
|
|
||||||
#ifdef gen_time
|
#ifdef GEN_TIME
|
||||||
#define GEN_FEATURE_PARSING
|
#define GEN_FEATURE_PARSING
|
||||||
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
||||||
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#ifdef gen_time
|
#ifdef GEN_TIME
|
||||||
#define GEN_FEATURE_PARSING
|
#define GEN_FEATURE_PARSING
|
||||||
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
||||||
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include "sanity.cpp"
|
#include "sanity.cpp"
|
||||||
#include "SOA.cpp"
|
#include "SOA.cpp"
|
||||||
|
|
||||||
#if gen_time
|
#if GEN_TIME
|
||||||
int gen_main()
|
int gen_main()
|
||||||
{
|
{
|
||||||
using namespace gen;
|
using namespace gen;
|
||||||
@ -23,7 +23,7 @@ int gen_main()
|
|||||||
|
|
||||||
|
|
||||||
// This only has to be done if symbol conflicts occur.
|
// This only has to be done if symbol conflicts occur.
|
||||||
#ifndef gen_time
|
#ifndef GEN_TIME
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#ifdef gen_time
|
#ifdef GEN_TIME
|
||||||
#define GEN_FEATURE_PARSING
|
#define GEN_FEATURE_PARSING
|
||||||
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
||||||
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
||||||
@ -9,7 +9,7 @@
|
|||||||
#include "Parsed\HashTable.Parsed.hpp"
|
#include "Parsed\HashTable.Parsed.hpp"
|
||||||
#include "Parsed\Ring.Parsed.hpp"
|
#include "Parsed\Ring.Parsed.hpp"
|
||||||
#include "Parsed\Sanity.Parsed.hpp"
|
#include "Parsed\Sanity.Parsed.hpp"
|
||||||
#include "SOA.hpp"
|
#include "SOA.cpp"
|
||||||
#include "gen.cpp"
|
#include "gen.cpp"
|
||||||
|
|
||||||
using namespace gen;
|
using namespace gen;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#ifdef gen_time
|
#ifdef GEN_TIME
|
||||||
#define GEN_FEATURE_PARSING
|
#define GEN_FEATURE_PARSING
|
||||||
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
||||||
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
||||||
|
Loading…
Reference in New Issue
Block a user