lwmem/dev/main.cpp
2022-09-01 19:05:40 +02:00

25 lines
470 B
C++

#include "lwmem/lwmem.h"
#include "lwmem/lwmem.hpp"
#include <iostream>
#include <stdint.h>
#include <string.h>
extern "C" void lwmem_test_run(void);
extern "C" void lwmem_test_memory_structure(void);
/* Setup manager */
Lwmem::LwmemLight<1024> manager;
int
main(void) {
lwmem_test_memory_structure();
//lwmem_test_run();
/* Test C++ code */
void* ret = manager.malloc(123);
std::cout << ret << std::endl;
manager.free(ret);
return 0;
}