gencpp/test/test.cpp

37 lines
528 B
C++
Raw Permalink Normal View History

#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
#include "gen.cpp"
#include "gen.builder.cpp"
#include "sanity.cpp"
2023-07-17 20:40:28 -07:00
#include "SOA.cpp"
#include "test.singleheader_ast.cpp"
int gen_main()
{
using namespace gen;
log_fmt("\ngen_time:");
// check_sanity();
// check_SOA();
2023-07-17 20:40:28 -07:00
check_singleheader_ast();
return 0;
}
#endif
// This only has to be done if symbol conflicts occur.
2023-07-18 21:13:12 -07:00
#ifndef GEN_TIME
int main()
{
return 0;
}
#endif