2023-07-17 20:40:28 -07:00
|
|
|
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
|
|
|
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
|
|
|
#define GEN_EXPOSE_BACKEND
|
|
|
|
#define GEN_BENCHMARK
|
2023-08-04 13:12:13 -07:00
|
|
|
#include "gen/gen.cpp"
|
|
|
|
#include "gen/gen.builder.cpp"
|
2023-07-16 15:00:07 -07:00
|
|
|
#include "sanity.cpp"
|
2023-07-17 20:40:28 -07:00
|
|
|
#include "SOA.cpp"
|
2023-07-30 15:55:57 -07:00
|
|
|
#include "test.singleheader_ast.cpp"
|
2023-07-08 11:11:41 -07:00
|
|
|
|
2023-07-18 21:13:12 -07:00
|
|
|
#if GEN_TIME
|
2023-07-08 11:11:41 -07:00
|
|
|
int gen_main()
|
|
|
|
{
|
2023-07-16 15:00:07 -07:00
|
|
|
using namespace gen;
|
|
|
|
log_fmt("\ngen_time:");
|
2023-07-08 11:11:41 -07:00
|
|
|
|
2023-07-30 15:55:57 -07:00
|
|
|
// check_sanity();
|
2023-07-11 15:29:45 -07:00
|
|
|
|
2023-08-07 11:52:26 -07:00
|
|
|
check_SOA();
|
2023-07-17 20:40:28 -07:00
|
|
|
|
2023-07-30 15:55:57 -07:00
|
|
|
check_singleheader_ast();
|
|
|
|
|
2023-07-08 11:11:41 -07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2023-07-16 15:00:07 -07:00
|
|
|
// This only has to be done if symbol conflicts occur.
|
2023-07-18 21:13:12 -07:00
|
|
|
#ifndef GEN_TIME
|
2023-07-08 11:11:41 -07:00
|
|
|
int main()
|
|
|
|
{
|
2023-07-16 15:00:07 -07:00
|
|
|
|
|
|
|
|
2023-07-08 11:11:41 -07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|