gencpp/test/test.Upfront.cpp

50 lines
674 B
C++
Raw Normal View History

#ifdef gen_time
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
#define GEN_FEATURE_PARSING
#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
{
Memory::setup();
gen::init();
gen_sanity();
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();
Memory::cleanup();
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