helos1/vterm/vterm.cpp
2021-10-10 14:11:45 +08:00

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};