test.cpp gen_time compiles (has memory issues though)

This commit is contained in:
2023-04-02 01:07:44 -04:00
parent f09fe6aa15
commit d66c1e4eb4
13 changed files with 238 additions and 264 deletions

View File

@ -1,17 +1,28 @@
#include "Bloat.cpp"
#include "math.hpp"
#ifdef gen_time
u32 gen_main()
{
return gen_math();
}
#include "gen.cpp"
int gen_main()
{
Memory::setup();
zpl_printf("\nPress any key after attaching to process\n");
getchar();
int result = gen_math();
Memory::cleanup();
return result;
}
#endif
#ifndef gen_time
#include "math.hpp"
int main()
{
u32 result = square(5);