Match C++ managed memory alloc with C# for scripting

This commit is contained in:
Wojtek Figat
2023-02-27 22:56:15 +01:00
parent 6f9f40192e
commit 499df770cc
4 changed files with 21 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ public:
static void RegisterNativeLibrary(const char* moduleName, const char* modulePath);
static const char* GetClassFullname(void* klass);
static void* Allocate(int size);
static void* Allocate(int32 size);
static void Free(void* ptr);
static MGCHandle NewGCHandle(void* obj, bool pinned);
static MGCHandle NewGCHandleWeakref(void* obj, bool track_resurrection);