gencpp/test/test.Upfront.cpp

51 lines
731 B
C++
Raw Permalink Normal View History

2023-07-18 21:13:12 -07:00
#ifdef GEN_TIME
#define GEN_FEATURE_PARSING
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
#define GEN_ENFORCE_STRONG_CODE_TYPES
#define GEN_EXPOSE_BACKEND
#define GEN_BENCHMARK
#include "gen.cpp"
#include "Upfront\Array.Upfront.hpp"
#include "Upfront\Buffer.Upfront.hpp"
#include "Upfront\HashTable.Upfront.hpp"
#include "Upfront\Ring.Upfront.hpp"
#include "Upfront\Sanity.Upfront.hpp"
2023-04-01 19:21:46 -07:00
using namespace gen;
int gen_main()
2023-04-01 19:21:46 -07:00
{
gen::init();
gen_sanity_upfront();
gen_array( u8 );
gen_array( sw );
2023-06-30 10:56:31 -07:00
gen_buffer( u8 );
gen_hashtable( u32 );
gen_ring( s16 );
gen_array_file();
2023-06-30 10:56:31 -07:00
gen_buffer_file();
gen_hashtable_file();
gen_ring_file();
2023-06-30 10:56:31 -07:00
2023-05-08 17:54:24 -07:00
gen::deinit();
2023-04-22 21:43:31 -07:00
return 0;
}
2023-04-01 19:21:46 -07:00
#endif
#ifdef runtime
2023-04-01 19:21:46 -07:00
int main()
{
return 0;
2023-04-01 19:21:46 -07:00
}
#endif