2023-08-20 12:45:06 -07:00
|
|
|
#if GEN_TIME
|
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-20 09:31:24 -07:00
|
|
|
#include "gen.cpp"
|
|
|
|
#include "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-08-22 21:05:58 -07:00
|
|
|
#include "validate.singleheader.cpp"
|
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-08-20 12:45:06 -07:00
|
|
|
// check_sanity();
|
2023-07-11 15:29:45 -07:00
|
|
|
|
2023-08-08 19:14:58 -07:00
|
|
|
// check_SOA();
|
2023-07-17 20:40:28 -07:00
|
|
|
|
2023-08-22 21:05:58 -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
|