MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / CheckLimit

Method CheckLimit

src/script/squirrel.cpp:107–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 size_t GetAllocatedSize() const { return this->allocated_size; }
106
107 void CheckLimit() const
108 {
109 if (this->allocated_size > this->allocation_limit) throw Script_FatalError("Maximum memory allocation exceeded");
110 }
111
112 void Reset()
113 {

Callers 2

ResumeMethod · 0.80
CallMethodMethod · 0.80

Calls 1

Script_FatalErrorClass · 0.85

Tested by

no test coverage detected