MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / Release

Method Release

src/ObjectModel/ObjectModel.cpp:326–344  ·  view source on GitHub ↗

Release any associated storage

Source from the content-addressed store, hash-verified

324
325// Release any associated storage
326void ExpressionValue::Release() noexcept
327{
328 switch (GetType())
329 {
330 case TypeCode::HeapString:
331
332 shVal.Delete();
333 type = (uint32_t)TypeCode::None;
334 break;
335
336 case TypeCode::HeapArray:
337 ahVal.Delete();
338 type = (uint32_t)TypeCode::None;
339 break;
340
341 default:
342 break;
343 }
344}
345
346void ExpressionValue::SetBool(bool b) noexcept
347{

Callers 1

~VariableMethod · 0.45

Calls 2

GetTypeFunction · 0.50
DeleteMethod · 0.45

Tested by

no test coverage detected