OpenTTD Source  1.11.0-beta2
ScriptAllocator Struct Reference

Public Member Functions

void CheckLimit () const
 
void * Malloc (SQUnsignedInteger size)
 
void * Realloc (void *p, SQUnsignedInteger oldsize, SQUnsignedInteger size)
 
void Free (void *p, SQUnsignedInteger size)
 

Data Fields

size_t allocated_size
 Sum of allocated data size.
 
size_t allocation_limit
 Maximum this allocator may use before allocations fail.
 

Static Public Attributes

static const size_t SAFE_LIMIT = 0x8000000
 128 MiB, a safe choice for almost any situation
 

Detailed Description

Definition at line 32 of file squirrel.cpp.


The documentation for this struct was generated from the following file: