MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setState

Method setState

Engine/source/console/consoleInternal.cpp:386–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386void Dictionary::setState(ExprEvalState *state, Dictionary* ref)
387{
388 exprState = state;
389
390 if (ref)
391 {
392 hashTable = ref->hashTable;
393 return;
394 }
395
396 if (!ownHashTable.data)
397 {
398 ownHashTable.count = 0;
399 ownHashTable.size = ST_INIT_SIZE;
400 ownHashTable.data = new Entry *[ownHashTable.size];
401
402 dMemset(ownHashTable.data, 0, ownHashTable.size * sizeof(Entry*));
403 }
404
405 hashTable = &ownHashTable;
406}
407
408Dictionary::~Dictionary()
409{

Callers 3

pushFrameMethod · 0.45
pushFrameRefMethod · 0.45
ExprEvalStateMethod · 0.45

Calls 1

dMemsetFunction · 0.50

Tested by

no test coverage detected