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

Method setState

Engine/source/console/consoleInternal.cpp:372–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372void Dictionary::setState(ExprEvalState *state, Dictionary* ref)
373{
374 exprState = state;
375
376 if( ref )
377 {
378 hashTable = ref->hashTable;
379 return;
380 }
381
382 if( !ownHashTable.data )
383 {
384 ownHashTable.count = 0;
385 ownHashTable.size = ST_INIT_SIZE;
386 ownHashTable.data = new Entry *[ ownHashTable.size ];
387
388 dMemset( ownHashTable.data, 0, ownHashTable.size * sizeof( Entry* ) );
389 }
390
391 hashTable = &ownHashTable;
392}
393
394Dictionary::~Dictionary()
395{

Callers 3

pushFrameMethod · 0.45
pushFrameRefMethod · 0.45
ExprEvalStateMethod · 0.45

Calls 1

dMemsetFunction · 0.50

Tested by

no test coverage detected