helos1/vterm/vterm.cpp

14 lines
266 B
C++
Raw Permalink Normal View History

2021-10-10 14:39:17 +08:00
#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};