gencpp/test/test.cpp

33 lines
389 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();
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(5);
zpl_printf("TEST RESULT: %d", result);
}
#endif