Forgot memory allocator for reffunctions

This commit is contained in:
2023-06-07 02:02:35 +10:00
parent 18b59c9e84
commit bfd506f497
4 changed files with 17 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
#include "toy_memory.h"
#include "toy_refstring.h"
#include "toy_reffunction.h"
#include "toy_console_colors.h"
@@ -49,4 +50,5 @@ void Toy_setMemoryAllocator(Toy_MemoryAllocatorFn fn) {
allocator = fn;
Toy_setRefStringAllocatorFn(fn);
Toy_setRefFunctionAllocatorFn(fn);
}