MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / Alloc

Method Alloc

source/script.cpp:6960–6968  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6958
6959template<typename T, int S>
6960ResultType ScriptItemList<T,S>::Alloc(int aAllocCount)
6961{
6962 T **temp = (T **)realloc(mItem, aAllocCount * sizeof(T *)); // If passed NULL, realloc() will do a malloc().
6963 if (!temp)
6964 return FAIL;
6965 mItem = temp;
6966 mCountMax = aAllocCount;
6967 return OK;
6968}
6969
6970
6971

Callers 1

ScriptMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected