Add memory allocation API with templated C++ delegates & minor fixups #1123

Closed
KitsuneAlex wants to merge 5 commits from main into main
2 changed files with 62 additions and 9 deletions
Showing only changes of commit 4863f7829d - Show all commits

View File

@@ -373,7 +373,6 @@ YG_EXTERN_C_END
#include <functional> #include <functional>
#include <vector> #include <vector>
#include <type_traits>
// Templated delegates for YGMemoryAllocate & YGMemoryFree, so we don't have to // Templated delegates for YGMemoryAllocate & YGMemoryFree, so we don't have to
// cast nor pass in the size of the allocated chunk of memory explicitly. // cast nor pass in the size of the allocated chunk of memory explicitly.