mirror of
https://github.com/Ed94/gencpp.git
synced 2025-07-01 19:31:02 -07:00
test.cpp gen_time compiles (has memory issues though)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user