gencpp/test/test.cpp

38 lines
458 B
C++
Raw Normal View History

#include "Bloat.cpp"
2023-04-01 19:21:46 -07:00
#include "math.hpp"
#include "Array.hpp"
2023-04-01 19:21:46 -07:00
#ifdef gen_time
#include "gen.cpp"
int gen_main()
2023-04-01 19:21:46 -07:00
{
Memory::setup();
2023-04-01 19:21:46 -07:00
zpl_printf("\nPress any key after attaching to process\n");
getchar();
gen::init();
int
result = gen_math();
result = gen_array_file();
Memory::cleanup();
return result;
}
2023-04-01 19:21:46 -07:00
#endif
#ifndef gen_time
#include "math.hpp"
2023-04-01 19:21:46 -07:00
int main()
{
u32 result = square( 5U );
2023-04-01 19:21:46 -07:00
zpl_printf("TEST RESULT: %d", result);
}
#endif