14 lines
266 B
C++
14 lines
266 B
C++
|
|
||
|
#include "vterm.hpp"
|
||
|
|
||
|
static void *defaultMalloc(size_t size, void *userdata) {
|
||
|
void *ptr = kMalloc(size);
|
||
|
return ptr;
|
||
|
}
|
||
|
|
||
|
static void defaultFree(void *ptr, void *userdata) {
|
||
|
kFree(ptr);
|
||
|
}
|
||
|
|
||
|
VTermAllocatorFunctions vterm_Allocator = {defaultMalloc, defaultFree};
|