lwmem/dev/main.cpp

25 lines
470 B
C++
Raw Normal View History

2022-01-08 15:43:57 +01:00
#include "lwmem/lwmem.h"
2022-01-08 16:12:49 +01:00
#include "lwmem/lwmem.hpp"
#include <iostream>
2022-09-01 19:05:40 +02:00
#include <stdint.h>
#include <string.h>
2022-01-08 15:43:57 +01:00
extern "C" void lwmem_test_run(void);
extern "C" void lwmem_test_memory_structure(void);
2022-01-14 23:07:44 +01:00
/* Setup manager */
2022-01-08 16:12:49 +01:00
Lwmem::LwmemLight<1024> manager;
2022-01-08 15:43:57 +01:00
int
main(void) {
2022-01-14 23:07:44 +01:00
lwmem_test_memory_structure();
2022-01-08 15:43:57 +01:00
//lwmem_test_run();
2022-01-14 23:07:44 +01:00
/* Test C++ code */
2022-01-08 15:43:57 +01:00
void* ret = manager.malloc(123);
2022-01-08 16:12:49 +01:00
std::cout << ret << std::endl;
2022-01-08 15:43:57 +01:00
manager.free(ret);
return 0;
}