MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / RoomMemFree

Function RoomMemFree

Descent3/room.cpp:517–525  ·  view source on GitHub ↗

Frees memory in a room Doesn't actually do anything

Source from the content-addressed store, hash-verified

515// Frees memory in a room
516// Doesn't actually do anything
517void RoomMemFree(void *buf) {
518 if (!buf)
519 return;
520
521 if (Room_mem_buf) {
522 ASSERT(((buf) >= Room_mem_buf) && ((buf) < (Room_mem_buf + Room_mem_size)));
523 } else
524 mem_free(buf);
525}
526
527// Initalize a room, allocating memory and filling in fields
528// Parameters: rp - the room to be initialized

Callers 2

FreeRoomFunction · 0.85
FreeRoomFaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected