Files
lace/3-mid/physics/interface/source/physics-shape.adb
2022-07-31 17:34:54 +10:00

19 lines
329 B
Ada

with
ada.unchecked_Deallocation;
package body physics.Shape
is
procedure free (Self : in out View)
is
procedure deallocate is new ada.unchecked_Deallocation (Item'Class, View);
begin
if Self /= null then
Self.destruct;
end if;
deallocate (Self);
end free;
end physics.Shape;