| 340 | // *********************************************************************** |
| 341 | |
| 342 | static void* LuaAllocator(void* ud, void* ptr, size_t osize, size_t nsize) { |
| 343 | // TODO: lua VM memory tracking? |
| 344 | if (nsize == 0) { |
| 345 | if (ptr) |
| 346 | RawFree(ptr); |
| 347 | return nullptr; |
| 348 | } else { |
| 349 | return RawRealloc(ptr, nsize, osize, true); |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | // *********************************************************************** |
| 354 |
nothing calls this directly
no outgoing calls
no test coverage detected