1
This commit is contained in:
2022-07-24 15:58:17 +02:00
parent 1572590c33
commit 3546cba4ea

View File

@ -16,16 +16,15 @@
#include "user/lib/Logger.h" #include "user/lib/Logger.h"
class BumpAllocator : Allocator { class BumpAllocator : Allocator {
private: private:
unsigned char* next; unsigned char* next;
unsigned int allocations; unsigned int allocations;
NamedLogger log; NamedLogger log;
public:
BumpAllocator(Allocator& copy) = delete; // Verhindere Kopieren BumpAllocator(Allocator& copy) = delete; // Verhindere Kopieren
public:
BumpAllocator() : log("BMP-Alloc") {}; // Allocator() called implicitely in C++ BumpAllocator() : log("BMP-Alloc") {}; // Allocator() called implicitely in C++
void init() override; void init() override;