gencpp/test/test.cpp

35 lines
406 B
C++
Raw Normal View History

#include "Bloat.cpp"
2023-04-01 19:21:46 -07:00
#include "math.hpp"
#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();
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