Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenTTD/OpenTTD
/ Malloc
Method
Malloc
src/script/squirrel.cpp:118–122 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
116
}
117
118
void *Malloc(SQUnsignedInteger size)
119
{
120
this->CheckAllocationAllowed(size);
121
return this->DoAlloc(size);
122
}
123
124
void *Realloc(void *p, SQUnsignedInteger oldsize, SQUnsignedInteger size)
125
{
Callers
2
Realloc
Method · 0.95
sq_vm_malloc
Function · 0.80
Calls
2
CheckAllocationAllowed
Method · 0.95
DoAlloc
Method · 0.95
Tested by
no test coverage detected